Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼7.81ms] Passed 4 tests
A check of server-side resources used by Taxoclean
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 39.03 ▼3.70 |
Dashboard /wp-admin | 3.60 ▲0.26 | 51.20 ▼14.15 |
Posts /wp-admin/edit.php | 3.65 ▲0.30 | 57.49 ▲11.88 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.24 | 90.94 ▼6.93 |
Media Library /wp-admin/upload.php | 3.46 ▲0.24 | 40.74 ▼6.44 |
About /wp-admin/admin.php?page=taxoclean_a | 5.34 | 50.63 |
Ignored terms /wp-admin/admin.php?page=taxoclean_l_ignores | 5.30 | 54.12 |
Orphans /wp-admin/admin.php?page=taxoclean_o | 4.12 | 37.70 |
Settings /wp-admin/admin.php?page=taxoclean_s | 5.39 | 53.58 |
Lookalikes /wp-admin/admin.php?page=taxoclean_l | 4.12 | 38.24 |
Server storage [IO: ▲1.58MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 442 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Taxoclean
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲67 | 14.37 ▲0.12 | 1.68 ▼0.26 | 45.62 ▲0.72 |
Dashboard /wp-admin | 2,231 ▲51 | 5.55 ▼0.14 | 86.32 ▼10.72 | 39.03 ▼3.80 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 2.03 ▲0.01 | 39.64 ▼2.51 | 37.78 ▼2.51 |
Add New Post /wp-admin/post-new.php | 1,562 ▲36 | 23.33 ▲5.62 | 679.10 ▼16.72 | 57.05 ▼2.03 |
Media Library /wp-admin/upload.php | 1,439 ▲42 | 4.22 ▼0.02 | 95.45 ▼31.70 | 46.31 ▼6.92 |
About /wp-admin/admin.php?page=taxoclean_a | 919 | 2.01 | 24.22 | 30.39 |
Ignored terms /wp-admin/admin.php?page=taxoclean_l_ignores | 866 | 2.05 | 23.73 | 28.85 |
Orphans /wp-admin/admin.php?page=taxoclean_o | 892 | 2.06 | 24.74 | 28.73 |
Settings /wp-admin/admin.php?page=taxoclean_s | 1,012 | 2.05 | 25.05 | 26.53 |
Lookalikes /wp-admin/admin.php?page=taxoclean_l | 887 | 2.05 | 29.82 | 30.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=taxoclean_o
- > Notice in wp-content/plugins/taxoclean/includes/tabs/taxoclean_o.php+23
Trying to get property 'count' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=taxoclean_l
- > Warning in wp-content/plugins/taxoclean/vendor/twig/twig/src/Environment.php(418) : eval()'d code+78
Division by zero
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=taxoclean_l
- > Warning in wp-content/plugins/taxoclean/vendor/twig/twig/src/Environment.php(418) : eval()'d code+45
range(): Invalid range supplied: start=0 end=inf
- > GET request to /wp-admin/admin.php?page=taxoclean_l
- > Warning in wp-content/plugins/taxoclean/includes/tabs/taxoclean_l.php+127
array_slice() expects parameter 1 to be array, object given
- > GET request to /wp-admin/admin.php?page=taxoclean_l
- > Warning in wp-content/plugins/taxoclean/includes/tabs/taxoclean_l.php+142
Invalid argument supplied for foreach()
SRP 50% 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 take a closer look at the following
- 151× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/taxoclean/vendor/twig/twig/src/Node/Expression/Binary/NotEqualBinary.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function taxoclean_get_translations() in wp-content/plugins/taxoclean/includes/wp_add_to_menu.php:3
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\TestExpression' not found in wp-content/plugins/taxoclean/vendor/twig/twig/src/Node/Expression/Test/EvenTest.php:24
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/taxoclean/vendor/twig/twig/src/Node/BlockNode.php:22
- > PHP Fatal error
Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/taxoclean/vendor/twig/twig/src/TokenParser/FlushTokenParser.php:22
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\PrintNode' not found in wp-content/plugins/taxoclean/vendor/twig/twig/src/Node/SandboxedPrintNode.php:28
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\AbstractExpression' not found in wp-content/plugins/taxoclean/vendor/twig/twig/src/Node/Expression/Unary/AbstractUnary.php:19
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/taxoclean/vendor/twig/twig/src/Node/PrintNode.php:23
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Unary\\AbstractUnary' not found in wp-content/plugins/taxoclean/vendor/twig/twig/src/Node/Expression/Unary/NegUnary.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/taxoclean/vendor/twig/twig/src/TokenParser/UseTokenParser.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (Orphan mode), #2 (Lookalike mode)
taxoclean/taxoclean.php Passed 13 tests
The main file in "Taxoclean" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
36 characters long description:
Helps you to cleanup your taxonomies
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
There were no executable files found in this plugin20,207 lines of code in 421 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 390 | 3,860 | 5,152 | 17,601 |
PO File | 5 | 300 | 330 | 1,186 |
JSON | 6 | 0 | 0 | 521 |
Twig | 12 | 52 | 0 | 512 |
CSS | 1 | 9 | 0 | 169 |
YAML | 3 | 49 | 0 | 169 |
Markdown | 3 | 21 | 0 | 39 |
reStructuredText | 1 | 8 | 5 | 10 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 5.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 166.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 27 | |
Interfaces | 14 | |
Traits | 0 | |
Classes | 349 | |
▷ Abstract classes | 11 | 3.15% |
▷ Concrete classes | 338 | 96.85% |
▷ Final classes | 52 | 15.38% |
Methods | 886 | |
▷ Static methods | 85 | 9.59% |
▷ Public methods | 754 | 85.10% |
▷ Protected methods | 58 | 6.55% |
▷ Private methods | 74 | 8.35% |
Functions | 195 | |
▷ Named functions | 169 | 86.67% |
▷ Anonymous functions | 26 | 13.33% |
Constants | 61 | |
▷ Global constants | 11 | 18.03% |
▷ Class constants | 50 | 81.97% |
▷ Public constants | 49 | 98.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.65MB with 0.45MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 25.17KB | 12.14KB | ▼ 51.79% |
assets/robot.png | 609.69KB | 131.46KB | ▼ 78.44% |
assets/screenshot-2.png | 30.34KB | 6.34KB | ▼ 79.11% |