Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.41MB] [CPU: ▼7.80ms] Passed 4 tests
An overview of server-side resources used by Toot
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 43.94 ▲1.77 |
Dashboard /wp-admin | 3.79 ▲0.44 | 55.08 ▼14.92 |
Posts /wp-admin/edit.php | 3.84 ▲0.49 | 51.42 ▼5.46 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.51 | 89.52 ▼12.57 |
Media Library /wp-admin/upload.php | 3.64 ▲0.42 | 40.97 ▲7.22 |
Add New /wp-admin/post-new.php?post_type=testimonial | 6.39 | 91.58 |
Settings /wp-admin/edit.php?post_type=testimonial&page=toot-settings | 3.67 | 42.64 |
Categories /wp-admin/edit-tags.php?taxonomy=testimonial_category&post_type=testimonial | 3.64 | 37.47 |
Testimonials /wp-admin/edit.php?post_type=testimonial | 3.77 | 41.24 |
Server storage [IO: ▲0.44MB] [DB: ▲0.31MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Toot
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 14.73 ▲0.08 | 1.96 ▲0.05 | 46.01 ▼2.09 |
Dashboard /wp-admin | 2,230 ▲59 | 5.61 ▲0.01 | 83.42 ▼4.10 | 39.36 ▼6.45 |
Posts /wp-admin/edit.php | 2,135 ▲73 | 2.01 ▼0.00 | 37.44 ▼0.44 | 35.07 ▲2.62 |
Add New Post /wp-admin/post-new.php | 1,574 ▲43 | 23.53 ▲0.38 | 675.20 ▲52.34 | 61.81 ▲12.77 |
Media Library /wp-admin/upload.php | 1,435 ▲32 | 4.18 ▼0.04 | 110.30 ▲9.25 | 51.35 ▲7.17 |
Add New /wp-admin/post-new.php?post_type=testimonial | 6,304 | 21.99 | 907.70 | 38.01 |
Settings /wp-admin/edit.php?post_type=testimonial&page=toot-settings | 1,713 | 6.60 | 138.39 | 67.42 |
Categories /wp-admin/edit-tags.php?taxonomy=testimonial_category&post_type=testimonial | 1,306 | 2.14 | 27.14 | 30.12 |
Testimonials /wp-admin/edit.php?post_type=testimonial | 1,211 | 1.95 | 33.20 | 29.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/toot/inc/functions-shortcodes.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function Toot\\trailingslashit() in wp-content/plugins/toot/toot.php:141
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/toot/inc/functions-meta.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/toot/uninstall.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/toot/inc/functions-filters.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function Toot\\add_action() in wp-content/plugins/toot/admin/class-manage-testimonials.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/toot/admin/functions-admin.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/toot/inc/functions-taxonomies.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function Toot\\add_action() in wp-content/plugins/toot/admin/class-testimonial-edit.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/toot/inc/functions-post-types.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (Example testimonial on the front end), #2 (Edit testimonial screen), #3 (Manage testimonials screen), #4 (Plugin settings screen)
toot/toot.php 92% from 13 tests
The primary PHP file in "Toot" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,809 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 574 | 1,425 | 1,369 |
Markdown | 4 | 138 | 0 | 405 |
JavaScript | 2 | 15 | 13 | 35 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 15.25 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 4 | 100.00% |
Methods | 57 | |
▷ Static methods | 4 | 7.02% |
▷ Public methods | 50 | 87.72% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 12.28% |
Functions | 73 | |
▷ Named functions | 73 | 100.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
4 PNG files occupy 0.30MB with 0.17MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 69.36KB | 31.10KB | ▼ 55.17% |
screenshot-3.png | 75.89KB | 32.70KB | ▼ 56.91% |
screenshot-2.png | 87.24KB | 38.43KB | ▼ 55.95% |
screenshot-1.png | 72.43KB | 26.77KB | ▼ 63.04% |