Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.78MB] [CPU: ▲0.86ms] Passed 4 tests
Analyzing server-side resources used by Mediavine Control Panel
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.25 ▲0.79 | 56.42 ▲14.39 |
Dashboard /wp-admin | 4.07 ▲0.77 | 60.06 ▲5.47 |
Posts /wp-admin/edit.php | 4.19 ▲0.83 | 53.94 ▲0.46 |
Add New Post /wp-admin/post-new.php | 6.68 ▲0.79 | 101.57 ▼6.71 |
Media Library /wp-admin/upload.php | 4.00 ▲0.77 | 44.67 ▲4.23 |
Mediavine Control Panel /wp-admin/options-general.php?page=mv_control_panel | 4.00 | 43.01 |
Server storage [IO: ▲2.82MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 437 new files
Database: no new tables, 9 new options
New WordPress options |
---|
mcp_offering_code |
widget_recent-posts |
mcp_offering_name |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
mcp_version |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Mediavine Control Panel
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲70 | 17.58 ▲2.94 | 1.87 ▲0.06 | 42.94 ▲1.74 |
Dashboard /wp-admin | 2,235 ▲55 | 8.81 ▲3.17 | 257.50 ▲166.98 | 39.09 ▼2.76 |
Posts /wp-admin/edit.php | 2,155 ▲55 | 5.97 ▲3.92 | 64.79 ▲24.01 | 33.37 ▼2.25 |
Add New Post /wp-admin/post-new.php | 6,222 ▲4,688 | 21.41 ▼1.85 | 972.10 ▲321.49 | 37.76 ▼22.57 |
Media Library /wp-admin/upload.php | 1,452 ▲49 | 7.14 ▲2.89 | 121.82 ▲23.32 | 42.25 ▼6.46 |
Mediavine Control Panel /wp-admin/options-general.php?page=mv_control_panel | 1,017 | 5.46 | 71.11 | 53.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 9 options
- mcp_offering_code
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- mcp_version
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- mcp_offering_name
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please fix the following
- 9× PHP files output text when accessed directly:
- > /wp-content/plugins/mediavine-control-panel/views/settings/video-sitemap.php
- > /wp-content/plugins/mediavine-control-panel/views/settings.php
- > /wp-content/plugins/mediavine-control-panel/views/settings/security.php
- > /wp-content/plugins/mediavine-control-panel/views/settings/adstxt.php
- > /wp-content/plugins/mediavine-control-panel/mediavine-control-panel.php
- > /wp-content/plugins/mediavine-control-panel/views/settings/web-stories.php
- > /wp-content/plugins/mediavine-control-panel/views/settings/launch-mode.php
- > /wp-content/plugins/mediavine-control-panel/vendor/nikic/php-parser/grammar/rebuildParsers.php
- > /wp-content/plugins/mediavine-control-panel/views/settings/gpt.php
- 294× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\ode\\Expr\\BinaryOp' not found in wp-content/plugins/mediavine-control-panel/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/SmallerOrEqual.php:7
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\ode\\Expr\\AssignOp' not found in wp-content/plugins/mediavine-control-panel/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Div.php:7
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\ode\\Expr' not found in wp-content/plugins/mediavine-control-panel/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Closure.php:9
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\ode\\Expr\\BinaryOp' not found in wp-content/plugins/mediavine-control-panel/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BooleanAnd.php:7
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\ode\\Expr' not found in wp-content/plugins/mediavine-control-panel/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Eval_.php:7
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\ode\\Stmt' not found in wp-content/plugins/mediavine-control-panel/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Goto_.php:8
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\ode\\Expr\\AssignOp' not found in wp-content/plugins/mediavine-control-panel/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Concat.php:7
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\ode\\Stmt' not found in wp-content/plugins/mediavine-control-panel/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Throw_.php:7
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\ode\\Expr' not found in wp-content/plugins/mediavine-control-panel/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Array_.php:7
- > PHP Fatal error
Uncaught Error: Interface 'PhpParser\\Builder' not found in wp-content/plugins/mediavine-control-panel/vendor/nikic/php-parser/lib/PhpParser/Builder/Param.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: mediavine, advertising
mediavine-control-panel/mediavine-control-panel.php 92% from 13 tests
Analyzing the main PHP file in "Mediavine Control Panel" version 2.10.3
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin25,554 lines of code in 375 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 356 | 4,065 | 7,219 | 22,533 |
yacc | 3 | 326 | 12 | 2,013 |
JavaScript | 3 | 50 | 51 | 312 |
Markdown | 3 | 83 | 0 | 284 |
CSS | 2 | 40 | 5 | 215 |
JSON | 1 | 0 | 0 | 118 |
YAML | 2 | 0 | 0 | 36 |
Bourne Again Shell | 2 | 10 | 6 | 18 |
Bourne Shell | 1 | 7 | 0 | 13 |
HTML | 1 | 0 | 0 | 11 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 6.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 2.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 37 | |
Interfaces | 11 | |
Traits | 2 | |
Classes | 320 | |
▷ Abstract classes | 21 | 6.56% |
▷ Concrete classes | 299 | 93.44% |
▷ Final classes | 14 | 4.68% |
Methods | 1,615 | |
▷ Static methods | 97 | 6.01% |
▷ Public methods | 1,218 | 75.42% |
▷ Protected methods | 331 | 20.50% |
▷ Private methods | 66 | 4.09% |
Functions | 1,237 | |
▷ Named functions | 43 | 3.48% |
▷ Anonymous functions | 1,194 | 96.52% |
Constants | 233 | |
▷ Global constants | 5 | 2.15% |
▷ Class constants | 228 | 97.85% |
▷ Public constants | 228 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected