Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼1.81ms] Passed 4 tests
A check of server-side resources used by Post Call to Action
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.61 ▼1.96 |
Dashboard /wp-admin | 3.37 ▲0.06 | 44.30 ▼3.29 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 48.54 ▼0.79 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 84.69 ▼1.21 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.49 ▲2.82 |
Post Call to Action /wp-admin/options-general.php?page=rum-post-cta | 3.26 | 30.11 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
rum_post_cta_plugin_options |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Post Call to Action
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲88 | 13.58 ▼1.01 | 1.67 ▲0.08 | 42.25 ▲0.81 |
Dashboard /wp-admin | 2,229 ▲41 | 5.00 ▼0.88 | 102.69 ▼12.40 | 40.61 ▼3.10 |
Posts /wp-admin/edit.php | 2,114 ▲28 | 2.47 ▲0.46 | 40.22 ▲0.06 | 34.81 ▲0.37 |
Add New Post /wp-admin/post-new.php | 1,531 ▲17 | 17.87 ▲0.02 | 671.39 ▼9.08 | 36.09 ▼15.79 |
Media Library /wp-admin/upload.php | 1,405 ▲17 | 4.44 ▲0.21 | 102.86 ▲6.99 | 43.16 ▲2.79 |
Post Call to Action /wp-admin/options-general.php?page=rum-post-cta | 1,274 | 2.44 | 49.22 | 25.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
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)
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-call-to-action/includes/settings.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/post-call-to-action/includes/display.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/post-call-to-action/post-call-to-action.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-call-to-action/includes/metabox.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: Screenshot #1 (Call to action bar) image not found
post-call-to-action/post-call-to-action.php Passed 13 tests
"Post Call to Action" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
82 characters long description:
Every page should do something. Display a call to action bar below each blog post.
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
Everything looks great! No dangerous files found in this plugin506 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 237 | 130 | 388 |
CSS | 1 | 0 | 0 | 107 |
JavaScript | 1 | 1 | 9 | 11 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.30MB with 0.19MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 109.15KB | 41.13KB | ▼ 62.32% |
screenshot-1.png | 53.85KB | 21.30KB | ▼ 60.44% |
screenshot-3.png | 142.16KB | 44.66KB | ▼ 68.58% |