Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼8.87ms] Passed 4 tests
Analyzing server-side resources used by Ultimo WP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 45.77 ▲4.86 |
Dashboard /wp-admin | 3.42 ▲0.08 | 48.46 ▼16.88 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 49.66 ▲0.75 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 84.33 ▼22.50 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 40.00 ▲3.14 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 3.35 | 34.42 |
Server storage [IO: ▲5.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 767 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Ultimo WP
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲83 | 14.26 ▼0.09 | 2.33 ▲0.33 | 40.17 ▼0.99 |
Dashboard /wp-admin | 2,228 ▲51 | 5.63 ▼0.01 | 91.99 ▲2.23 | 47.23 ▲1.83 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 2.16 ▲0.16 | 44.10 ▲6.40 | 43.21 ▲6.20 |
Add New Post /wp-admin/post-new.php | 1,552 ▲19 | 23.58 ▲0.41 | 648.12 ▲47.31 | 57.26 ▲13.13 |
Media Library /wp-admin/upload.php | 1,438 ▲44 | 4.23 ▲0.05 | 99.47 ▼0.38 | 49.05 ▲3.97 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 974 | 2.18 | 27.69 | 33.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 237× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Twig_CompilerInterface' not found in wp-content/plugins/ultimo-wp/paradox/vendor/twig/twig/lib/Twig/Compiler.php:18
- > PHP Fatal error
Uncaught Error: Class 'Leafo\\ScssPhp\\Formatter' not found in wp-content/plugins/ultimo-wp/paradox/vendor/leafo/scssphp/src/Formatter/Nested.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Twig_Sandbox_SecurityPolicyInterface' not found in wp-content/plugins/ultimo-wp/paradox/vendor/twig/twig/lib/Twig/Sandbox/SecurityPolicy.php:17
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/ultimo-wp/views/footer.php:5
- > PHP Fatal error
Uncaught Error: Class 'Twig_Test_NodeTestCase' not found in wp-content/plugins/ultimo-wp/paradox/vendor/twig/twig/test/Twig/Tests/Node/SpacelessTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Filter' not found in wp-content/plugins/ultimo-wp/paradox/vendor/twig/twig/lib/Twig/Node/Expression/Filter/Default.php:21
- > PHP Fatal error
Uncaught Error: Class 'Twig_Test_NodeTestCase' not found in wp-content/plugins/ultimo-wp/paradox/vendor/twig/twig/test/Twig/Tests/Node/Expression/Binary/AddTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Test' not found in wp-content/plugins/ultimo-wp/paradox/vendor/twig/twig/lib/Twig/Node/Expression/Test/Defined.php:24
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ultimo-wp/inc/color-scheme/color-scheme.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Print' not found in wp-content/plugins/ultimo-wp/paradox/vendor/twig/twig/lib/Twig/Node/SandboxedPrint.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: custom admin, admin interface, theme, admin theme, admin ui...
ultimo-wp/ultimo-wp.php Passed 13 tests
Analyzing the main PHP file in "Ultimo WP" version 0.1.0
58 characters long description:
Give your WordPress admin a whole new look with Ultimo WP.
Code Analysis 97% from 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 detected53,867 lines of code in 478 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 36 | 586 | 587 | 24,617 |
PHP | 283 | 4,809 | 8,612 | 19,694 |
reStructuredText | 88 | 2,207 | 1,985 | 3,062 |
Sass | 35 | 1,113 | 114 | 3,018 |
SVG | 2 | 0 | 0 | 1,316 |
Markdown | 4 | 282 | 0 | 970 |
C | 1 | 166 | 150 | 793 |
JSON | 4 | 0 | 0 | 198 |
HTML | 13 | 10 | 0 | 94 |
XML | 2 | 6 | 1 | 47 |
Bourne Shell | 2 | 12 | 4 | 33 |
C/C++ Header | 1 | 7 | 13 | 11 |
m4 | 1 | 2 | 1 | 5 |
Twig | 2 | 2 | 0 | 4 |
JavaScript | 3 | 0 | 0 | 3 |
make | 1 | 0 | 0 | 2 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 105)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 9.03 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 474.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 105.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 19 | |
Traits | 0 | |
Classes | 278 | |
▷ Abstract classes | 14 | 5.04% |
▷ Concrete classes | 264 | 94.96% |
▷ Final classes | 0 | 0.00% |
Methods | 1,514 | |
▷ Static methods | 22 | 1.45% |
▷ Public methods | 1,192 | 78.73% |
▷ Protected methods | 314 | 20.74% |
▷ Private methods | 8 | 0.53% |
Functions | 71 | |
▷ Named functions | 63 | 88.73% |
▷ Anonymous functions | 8 | 11.27% |
Constants | 45 | |
▷ Global constants | 1 | 2.22% |
▷ Class constants | 44 | 97.78% |
▷ Public constants | 44 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
19 PNG files occupy 0.11MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo-back.png | 1.46KB | 1.38KB | ▼ 5.63% |
assets/img/presets/default.png | 7.03KB | 0.53KB | ▼ 92.46% |
assets/img/author.png | 6.08KB | 5.94KB | ▼ 2.20% |
assets/img/logo.png | 1.71KB | 1.72KB | 0.00% |
paradox/vendor/leafo/scssphp/site/www/img/tile.png | 0.24KB | 0.16KB | ▼ 31.97% |