Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.41ms] Passed 4 tests
Analyzing server-side resources used by Cackle
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 35.85 ▼6.19 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.96 ▼1.39 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.85 ▲0.41 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 83.71 ▼6.45 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 34.68 ▲3.97 |
Cackle moderate /wp-admin/edit-comments.php?page=cackle | 3.23 | 32.48 |
Cackle settings /wp-admin/edit-comments.php?page=cackle_settings | 3.22 | 32.71 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_cackle_channel |
New WordPress options |
---|
cackle_plugin_version |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Cackle
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲116 | 13.63 ▼0.78 | 14.69 ▲12.81 | 40.59 ▼32.00 |
Dashboard /wp-admin | 2,219 ▲31 | 5.81 ▼0.04 | 97.90 ▼19.66 | 38.98 ▼3.06 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.02 ▲0.04 | 35.53 ▼2.10 | 29.27 ▼3.92 |
Add New Post /wp-admin/post-new.php | 1,556 ▲20 | 18.16 ▼4.84 | 629.10 ▼56.05 | 55.17 ▲2.16 |
Media Library /wp-admin/upload.php | 1,398 ▲13 | 4.16 ▼0.06 | 94.10 ▼3.85 | 42.38 ▲2.31 |
Cackle moderate /wp-admin/edit-comments.php?page=cackle | 2,683 | 4.81 | 132.18 | 66.19 |
Cackle settings /wp-admin/edit-comments.php?page=cackle_settings | 2,045 | 3.83 | 131.30 | 48.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_cackle_channel
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- cackle_plugin_version
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% 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)
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cackle/manage.php:1
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/cackle/comment-template.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/cackle/cackle_admin.php:66
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/cackle/comment-template.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cackle/cackle_activate.php:52
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cackle/cackle_api.php:12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit-comments.php?page=cackle_settings
- > Console-api (warning) in unknown
https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js 101:326 "ARIA: Attribute \"" "aria-label" "\", required for accessibility, is missing on node:" md-switch.md-primary.ng-pristine.ng-untouched.ng-valid.md-default-theme
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit-comments.php?page=cackle_settings
- > Console-api (warning) in unknown
https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js 101:326 "ARIA: Attribute \"" "aria-label" "\", required for accessibility, is missing on node:" md-switch.md-primary.ng-pristine.ng-untouched.ng-valid.md-default-theme.md-checked
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== cackle ===
) - Screenshots: Please add images for these screenshots: #1 (Cackle widget preview (English)), #2 (Cackle widget preview (Русский)), #3 (Steps for getting API keys in red), #4 (API keys highlighted in red), #5 (Administration panel)
cackle/cackle.php 92% from 13 tests
This is the main PHP file of "Cackle" version 4.33, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Domain Path: The domain path folder does not exist ("/locales")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,814 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 241 | 178 | 1,674 |
PO File | 1 | 55 | 1 | 105 |
CSS | 1 | 4 | 0 | 34 |
JavaScript | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 4.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 5 | 13.51% |
▷ Public methods | 37 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 29.30KB | 12.82KB | ▼ 56.26% |
screenshot-2.png | 43.25KB | 17.73KB | ▼ 59.02% |
screenshot-3.png | 16.71KB | 10.14KB | ▼ 39.32% |