Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/mowplayer/functions.php+87
Trying to get property 'autoreplace' of non-object
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.58ms] Passed 4 tests
An overview of server-side resources used by Mowplayer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 42.10 ▼1.54 |
Dashboard /wp-admin | 3.36 ▲0.06 | 47.37 ▼4.83 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 51.03 ▲3.93 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 88.30 ▼16.37 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.80 ▲0.41 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Please try to fix the following items
- There were 1 file (1.64KB) illegally modified outside of "wp-content/plugins/mowplayer/" and "wp-content/uploads/"
- (new file) ads.txt
Filesystem: 23 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_mowplayer_settings |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Mowplayer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲97 | 13.99 ▼0.34 | 37.05 ▲34.88 | 47.05 ▼1.94 |
Dashboard /wp-admin | 2,228 ▲43 | 4.98 ▼0.89 | 108.31 ▼9.79 | 67.41 ▲24.32 |
Posts /wp-admin/edit.php | 2,111 ▲19 | 1.99 ▲0.02 | 38.99 ▼0.11 | 37.04 ▲4.64 |
Add New Post /wp-admin/post-new.php | 6,266 ▲4,724 | 20.18 ▲2.12 | 868.64 ▲240.52 | 40.29 ▼9.47 |
Media Library /wp-admin/upload.php | 1,410 ▲19 | 4.08 ▼0.14 | 109.70 ▲11.14 | 42.48 ▼0.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/mowplayer/functions.php on line 84
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/mowplayer/bkp-functions.php on line 111
- > PHP Fatal error
Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/mowplayer/bkp-functions.php:113
- > PHP Fatal error
Uncaught Error: Call to undefined function get_site_url() in wp-content/plugins/mowplayer/settings.php:5
- > PHP Fatal error
Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/mowplayer/functions.php:86
- > PHP Fatal error
Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/mowplayer/mow.php:15
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: mowplayer, video ads, monetization
mowplayer/mow.php 92% from 13 tests
The primary PHP file in "Mowplayer" version 5.1.6 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mowplayer.php" instead of "mow.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin904 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 151 | 255 | 432 |
JavaScript | 2 | 63 | 25 | 253 |
Markdown | 1 | 61 | 0 | 85 |
SVG | 3 | 0 | 0 | 69 |
CSS | 2 | 11 | 20 | 65 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 17 | 94.44% |
▷ Anonymous functions | 1 | 5.56% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/logo.png | 1.66KB | 0.93KB | ▼ 44.01% |
assets/icon-128x128.png | 4.99KB | 2.89KB | ▼ 42.11% |
assets/mow-logo-new.png | 1.94KB | 1.53KB | ▼ 21.30% |
(invalid) assets/mow-logo-128x128.png | 3.04KB | 0.00KB | ▼ 100.00% |
(invalid) assets/mow-logo.png | 3.27KB | 0.00KB | ▼ 100.00% |