Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.68MB] [CPU: ▼6.44ms] Passed 4 tests
An overview of server-side resources used by Mediamask
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.16 ▲0.70 | 46.21 ▲3.36 |
Dashboard /wp-admin | 4.00 ▲0.65 | 51.57 ▼13.66 |
Posts /wp-admin/edit.php | 4.11 ▲0.75 | 54.13 ▲2.45 |
Add New Post /wp-admin/post-new.php | 6.60 ▲0.70 | 88.49 ▼17.92 |
Media Library /wp-admin/upload.php | 3.92 ▲0.69 | 41.23 ▲5.04 |
Server storage [IO: ▲5.79MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 1,428 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Mediamask
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲59 | 14.24 ▼0.11 | 1.65 ▼0.16 | 38.84 ▼4.25 |
Dashboard /wp-admin | 2,214 ▲37 | 5.57 ▼0.03 | 83.68 ▼12.63 | 40.04 ▼3.06 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.00 ▼0.01 | 43.03 ▲7.17 | 36.05 ▼1.58 |
Add New Post /wp-admin/post-new.php | 1,542 ▲14 | 23.28 ▲0.24 | 658.53 ▲11.17 | 50.79 ▼3.49 |
Media Library /wp-admin/upload.php | 1,416 ▲19 | 4.30 ▲0.11 | 99.77 ▼7.43 | 41.78 ▼6.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/mediamask/tests/bootstrap.php
- > /wp-content/plugins/mediamask/admin/partials/plugin-mediamask-display.php
- > /wp-content/plugins/mediamask/public/partials/mediamask-public-display.php
- > /wp-content/plugins/mediamask/vendor/nikic/php-parser/grammar/rebuildParsers.php
- 691× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\ode\\Expr' not found in wp-content/plugins/mediamask/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Eval_.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\SyntheticError' not found in wp-content/plugins/mediamask/vendor/phpunit/phpunit/src/Framework/Exception/PHPTAssertionFailedError.php:15
- > PHP Fatal error
Uncaught Error: Interface 'PHPUnit\\Runner\\Hook' not found in wp-content/plugins/mediamask/vendor/phpunit/phpunit/src/Runner/Hook/AfterLastTestHook.php:21
- > PHP Fatal error
Uncaught Error: Interface 'PHPUnit\\Framework\\SelfDescribing' not found in wp-content/plugins/mediamask/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:22
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\Constraint\\Constraint' not found in wp-content/plugins/mediamask/vendor/phpunit/phpunit/src/Framework/Constraint/Math/IsInfinite.php:17
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\\Builder\\Declaration' not found in wp-content/plugins/mediamask/vendor/nikic/php-parser/lib/PhpParser/Builder/Enum_.php:12
- > PHP Fatal error
Uncaught Error: Interface 'PHPUnit\\Exception' not found in wp-content/plugins/mediamask/vendor/phpunit/phpunit/src/TextUI/XmlConfiguration/Exception.php:17
- > PHP Fatal error
Uncaught Error: Interface 'PHPUnit\\Framework\\MockObject\\Stub\\Stub' not found in wp-content/plugins/mediamask/vendor/phpunit/phpunit/src/Framework/MockObject/Stub/ReturnCallback.php:22
- > PHP Warning
rename(wp-content/plugins/mediamask/vendor/nikic/php-parser/grammar/tmp_parser.php,wp-content/plugins/mediamask/vendor/nikic/php-parser/grammar/../lib/PhpParser/Parser/Tokens.php): No such file or directory in wp-content/plugins/mediamask/vendor/nikic/php-parser/grammar/rebuildParsers.php on line 57
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\Exception' not found in wp-content/plugins/mediamask/vendor/phpunit/phpunit/src/Framework/Exception/Warning.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== mediamask ===
)
mediamask/mediamask.php Passed 13 tests
The main PHP script in "Mediamask" version 1.0.0 is automatically included on every request by WordPress
63 characters long description:
Generate automated Open Graph images on your Wordpress Website.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin96,866 lines of code in 1,328 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,117 | 16,509 | 34,275 | 76,931 |
Markdown | 90 | 3,510 | 0 | 7,741 |
JSON | 48 | 7 | 0 | 7,365 |
yacc | 3 | 336 | 12 | 2,058 |
XSD | 3 | 0 | 0 | 964 |
Vuejs Component | 11 | 123 | 30 | 889 |
XML | 19 | 5 | 2 | 237 |
Bourne Shell | 2 | 34 | 20 | 155 |
YAML | 4 | 29 | 3 | 154 |
CSS | 8 | 33 | 14 | 140 |
TypeScript | 8 | 21 | 5 | 125 |
JavaScript | 9 | 12 | 71 | 72 |
reStructuredText | 2 | 23 | 18 | 31 |
SVG | 4 | 0 | 0 | 4 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 142)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 8.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 216.00 |
Average method complexity | 2.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 142.00 |
Code structure | ||
---|---|---|
Namespaces | 114 | |
Interfaces | 99 | |
Traits | 42 | |
Classes | 952 | |
▷ Abstract classes | 46 | 4.83% |
▷ Concrete classes | 906 | 95.17% |
▷ Final classes | 481 | 53.09% |
Methods | 5,701 | |
▷ Static methods | 722 | 12.66% |
▷ Public methods | 4,540 | 79.64% |
▷ Protected methods | 527 | 9.24% |
▷ Private methods | 634 | 11.12% |
Functions | 1,611 | |
▷ Named functions | 248 | 15.39% |
▷ Anonymous functions | 1,363 | 84.61% |
Constants | 602 | |
▷ Global constants | 4 | 0.66% |
▷ Class constants | 598 | 99.34% |
▷ Public constants | 540 | 90.30% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin