Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.03MB] [CPU: ▼1.43ms] Passed 4 tests
An overview of server-side resources used by Darujme
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.80 ▲1.34 | 55.36 ▲15.18 |
Dashboard /wp-admin | 4.62 ▲1.28 | 62.63 ▼0.70 |
Posts /wp-admin/edit.php | 4.67 ▲1.31 | 64.88 ▲15.59 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 67.79 ▼35.78 |
Media Library /wp-admin/upload.php | 4.48 ▲1.25 | 51.87 ▲19.92 |
WPify Logs /wp-admin/tools.php?page=wpify-logs | 4.45 | 41.55 |
Darujme /wp-admin/options-general.php?page=darujme_options | 4.59 | 49.25 |
Server storage [IO: ▲2.54MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 494 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Darujme
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,878 ▲117 | 13.65 ▼0.70 | 12.90 ▲11.08 | 42.01 ▼1.21 |
Dashboard /wp-admin | 2,203 ▲23 | 5.59 ▼0.08 | 89.28 ▼3.10 | 42.14 ▲3.62 |
Posts /wp-admin/edit.php | 2,105 ▲2 | 2.01 ▼0.14 | 40.33 ▲3.22 | 34.42 ▲0.54 |
Add New Post /wp-admin/post-new.php | 6,201 ▲4,675 | 19.46 ▼4.12 | 860.51 ▲229.76 | 35.15 ▼12.32 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.18 ▼0.02 | 95.69 ▲1.83 | 42.08 ▲1.40 |
WPify Logs /wp-admin/tools.php?page=wpify-logs | 798 | 1.99 | 21.65 | 24.95 |
Darujme /wp-admin/options-general.php?page=darujme_options | 3,814 | 23.96 | 510.39 | 52.57 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
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
Please fix the following items
- 271× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'DarujmeDeps\\PHPStan\\PhpDocParser\\Ast\\PhpDoc\\PhpDocTagValueNode' not found in wp-content/plugins/darujme/deps/phpstan/phpdoc-parser/src/Ast/PhpDoc/ReturnTagValueNode.php:8
- > PHP Fatal error
Uncaught Error: Interface 'DarujmeDeps\\Invoker\\ParameterResolver\\ParameterResolver' not found in wp-content/plugins/darujme/deps/php-di/invoker/src/ParameterResolver/Container/ParameterNameContainerResolver.php:12
- > PHP Fatal error
Uncaught Error: Class 'DarujmeDeps\\Wpify\\Model\\Abstracts\\AbstractTermModel' not found in wp-content/plugins/darujme/deps/wpify/model/src/Menu.php:12
- > PHP Fatal error
Uncaught Error: Class 'DarujmeDeps\\Wpify\\Model\\Abstracts\\AbstractOrderItemModel' not found in wp-content/plugins/darujme/deps/wpify/model/src/OrderItemLine.php:13
- > PHP Fatal error
Uncaught Error: Interface 'DarujmeDeps\\DI\\Factory\\RequestedEntry' not found in wp-content/plugins/darujme/deps/php-di/php-di/src/Definition/Definition.php:14
- > PHP Fatal error
Uncaught Error: Interface 'DarujmeDeps\\DI\\Definition\\Definition' not found in wp-content/plugins/darujme/deps/php-di/php-di/src/Definition/ValueDefinition.php:12
- > PHP Fatal error
Uncaught Error: Interface 'DarujmeDeps\\Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/darujme/deps/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php:19
- > PHP Fatal error
Uncaught Error: Interface 'DarujmeDeps\\PHPStan\\PhpDocParser\\Ast\\Type\\TypeNode' not found in wp-content/plugins/darujme/deps/phpstan/phpdoc-parser/src/Ast/Type/UnionTypeNode.php:7
- > PHP Fatal error
Uncaught Error: Interface 'DarujmeDeps\\DI\\Definition\\Definition' not found in wp-content/plugins/darujme/deps/php-di/php-di/src/Definition/EnvironmentVariableDefinition.php:12
- > PHP Fatal error
Uncaught Error: Interface 'DarujmeDeps\\DI\\Definition\\Definition' not found in wp-content/plugins/darujme/deps/php-di/php-di/src/Definition/ArrayDefinition.php:12
- > 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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: donation, darujme
darujme/darujme.php 85% from 13 tests
The entry point to "Darujme" version 1.1.6 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("5.5" instead of "5.4.0")
- Requires PHP: Required version does not match the one declared in readme.txt ("7.4" instead of "7.3.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin25,978 lines of code in 469 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 416 | 1,069 | 11,059 | 21,998 |
Markdown | 22 | 820 | 0 | 2,167 |
JSON | 19 | 0 | 0 | 1,425 |
JSX | 4 | 34 | 0 | 365 |
YAML | 1 | 1 | 0 | 12 |
JavaScript | 4 | 0 | 0 | 4 |
SVG | 1 | 0 | 0 | 4 |
CSS | 2 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 8.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 318.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 67 | |
Interfaces | 44 | |
Traits | 6 | |
Classes | 342 | |
▷ Abstract classes | 26 | 7.60% |
▷ Concrete classes | 316 | 92.40% |
▷ Final classes | 19 | 6.01% |
Methods | 1,916 | |
▷ Static methods | 106 | 5.53% |
▷ Public methods | 1,538 | 80.27% |
▷ Protected methods | 214 | 11.17% |
▷ Private methods | 164 | 8.56% |
Functions | 115 | |
▷ Named functions | 21 | 18.26% |
▷ Anonymous functions | 94 | 81.74% |
Constants | 126 | |
▷ Global constants | 5 | 3.97% |
▷ Class constants | 121 | 96.03% |
▷ Public constants | 91 | 75.21% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.23MB with 0.15MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
deps/wpify/custom-fields/build/images/flags@2x.9d5328fb.png | 170.28KB | 68.04KB | ▼ 60.04% |
deps/wpify/custom-fields/build/images/flags.007b2705.png | 69.20KB | 23.42KB | ▼ 66.16% |