Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▲1.69ms] Passed 4 tests
Analyzing server-side resources used by WP Cowsay
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.04 ▼1.62 |
Dashboard /wp-admin | 3.31 ▲0.01 | 58.35 ▲2.15 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 54.61 ▲4.44 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 105.02 ▲4.97 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.20 ▲1.79 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WP Cowsay
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.21 ▼1.37 | 1.61 ▼0.32 | 42.79 ▼5.71 |
Dashboard /wp-admin | 2,206 ▲27 | 4.87 ▼0.00 | 110.97 ▼8.48 | 44.44 ▼1.60 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.03 ▲0.04 | 41.70 ▲6.15 | 35.91 ▲1.25 |
Add New Post /wp-admin/post-new.php | 1,534 ▲1 | 23.13 ▲0.05 | 655.57 ▼44.10 | 58.94 ▲2.12 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.24 ▼0.04 | 100.50 ▼15.03 | 39.93 ▼7.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The following issues need your attention
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Cowsayphp\\AbstractAnimal' not found in wp-content/plugins/wp-cowsay/vendor/alrik11es/cowsayphp/src/Farm/Dragon.php:6
- > PHP Fatal error
Uncaught Error: Interface 'Cowsayphp\\AnimalInterface' not found in wp-content/plugins/wp-cowsay/vendor/alrik11es/cowsayphp/src/AbstractAnimal.php:4
- > PHP Fatal error
Uncaught Error: Class 'Cowsayphp\\AbstractAnimal' not found in wp-content/plugins/wp-cowsay/vendor/alrik11es/cowsayphp/src/Farm/Cow.php:6
- > PHP Fatal error
Uncaught Error: Class 'Cowsayphp\\AbstractAnimal' not found in wp-content/plugins/wp-cowsay/vendor/alrik11es/cowsayphp/src/Farm/Whale.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-cowsay/wp-cowsay.php:30
- > PHP Fatal error
Uncaught Error: Class 'Cowsayphp\\AbstractAnimal' not found in wp-content/plugins/wp-cowsay/vendor/alrik11es/cowsayphp/src/Farm/Tux.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: shortcode, cowsay
wp-cowsay/wp-cowsay.php Passed 13 tests
The main PHP script in "WP Cowsay" version 0.1.13 is automatically included on every request by WordPress
24 characters long description:
Enable Cowsay shortcode!
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
These items require your attention
- Do not distribute dangerous files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/wp-cowsay/vendor/alrik11es/cowsayphp/bin/cowsayphp.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 59 | 120 | 260 |
Markdown | 4 | 60 | 0 | 144 |
JSON | 1 | 0 | 0 | 45 |
PO File | 1 | 5 | 7 | 33 |
JavaScript | 1 | 1 | 0 | 7 |
DOS Batch | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 1.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 1 | 11.11% |
▷ Concrete classes | 8 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 2 | 13.33% |
▷ Public methods | 13 | 86.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 13.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected