Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼5.75ms] Passed 4 tests
An overview of server-side resources used by WP EXtra
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 34.64 ▼4.12 |
Dashboard /wp-admin | 3.57 ▲0.23 | 51.72 ▼6.42 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 47.86 ▲0.18 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 85.96 ▼12.64 |
Media Library /wp-admin/upload.php | 3.43 ▲0.21 | 39.83 ▲6.74 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 171 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP EXtra
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 14.17 ▼0.27 | 1.82 ▲0.02 | 44.26 ▲7.80 |
Dashboard /wp-admin | 2,222 ▲42 | 5.57 ▼0.09 | 87.05 ▲1.73 | 42.88 ▲3.56 |
Posts /wp-admin/edit.php | 2,124 ▲27 | 1.97 ▼0.04 | 36.64 ▼1.06 | 36.68 ▲3.59 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 23.13 ▼0.16 | 661.69 ▼11.94 | 58.93 ▲4.06 |
Media Library /wp-admin/upload.php | 1,424 ▲27 | 4.13 ▼0.13 | 106.59 ▲11.12 | 45.14 ▲3.45 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-extra/settings/resources/views/tab-menu.php
- > /wp-content/plugins/wp-extra/settings/resources/views/section.php
- > /wp-content/plugins/wp-extra/vendor/maciejczyzewski/bottomline/bench.php
- 101× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function get_hide_class_attribute() on null in wp-content/plugins/wp-extra/settings/resources/views/options/number.php:1
- > PHP Fatal error
Uncaught Error: Call to a member function get_hide_class_attribute() on null in wp-content/plugins/wp-extra/settings/resources/views/options/taxonomy.php:1
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wp-extra/settings/resources/views/section.php on line 9
- > PHP Notice
Undefined variable: option in wp-content/plugins/wp-extra/settings/resources/views/options/code-editor.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-extra/vendor/maciejczyzewski/bottomline/tests/objects.php:3
- > PHP Fatal error
Uncaught Error: Call to a member function get_hide_class_attribute() on null in wp-content/plugins/wp-extra/settings/resources/views/options/choices.php:1
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-extra/vendor/maciejczyzewski/bottomline/tests/collections.php:3
- > PHP Fatal error
Uncaught Error: Class 'WPVNTeam\\WPSettings\\Options\\OptionAbstract' not found in wp-content/plugins/wp-extra/src/WPSettings/Import.php:7
- > PHP Fatal error
Uncaught Error: Class 'WPVNTeam\\WPSettings\\Options\\OptionAbstract' not found in wp-content/plugins/wp-extra/settings/src/Options/Checkbox.php:5
- > PHP Fatal error
Uncaught Error: Class 'WPVNTeam\\WPSettings\\Options\\OptionAbstract' not found in wp-content/plugins/wp-extra/settings/src/Options/Choices.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wp-extra/wp-extra.php Passed 13 tests
The main PHP file in "WP EXtra" ver. 6.3 adds more information about the plugin and also serves as the entry point for this plugin
98 characters long description:
❤ This is a simple and perfect tool to use as your website’s functionality plugin. Awesome !!!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected8,298 lines of code in 160 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 140 | 1,444 | 1,442 | 7,222 |
PO File | 1 | 145 | 150 | 393 |
Markdown | 2 | 84 | 0 | 272 |
JSON | 3 | 0 | 0 | 168 |
JavaScript | 11 | 11 | 1 | 129 |
CSS | 1 | 0 | 0 | 74 |
XML | 1 | 0 | 0 | 30 |
YAML | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 11.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 65 | |
▷ Abstract classes | 1 | 1.54% |
▷ Concrete classes | 64 | 98.46% |
▷ Final classes | 0 | 0.00% |
Methods | 390 | |
▷ Static methods | 28 | 7.18% |
▷ Public methods | 370 | 94.87% |
▷ Protected methods | 3 | 0.77% |
▷ Private methods | 17 | 4.36% |
Functions | 84 | |
▷ Named functions | 55 | 65.48% |
▷ Anonymous functions | 29 | 34.52% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/maciejczyzewski/bottomline/screenshot-2.png | 46.98KB | 14.67KB | ▼ 68.77% |
vendor/maciejczyzewski/bottomline/screenshot-1.png | 1.81KB | 0.24KB | ▼ 86.92% |