Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼6.79ms] Passed 4 tests
An overview of server-side resources used by Switch CTA Box
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 37.12 ▼8.15 |
Dashboard /wp-admin | 3.38 ▲0.08 | 51.72 ▼0.23 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 73.08 ▲21.90 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 90.95 ▼17.83 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 38.13 ▼0.93 |
Add New /wp-admin/post-new.php?post_type=ctabox | 3.35 | 48.04 |
All CTA Box /wp-admin/edit.php?post_type=ctabox | 3.35 | 40.47 |
Server storage [IO: ▲1.05MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please fix the following
- Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/switch-cta-box/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Switch CTA Box: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲88 | 13.36 ▼1.02 | 1.94 ▲0.17 | 40.76 ▼5.51 |
Dashboard /wp-admin | 2,250 ▲44 | 5.76 ▲0.88 | 97.92 ▼7.86 | 39.13 ▼7.73 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 2.05 ▲0.02 | 39.78 ▼3.30 | 35.48 ▼1.62 |
Add New Post /wp-admin/post-new.php | 1,565 ▲20 | 23.17 ▼0.06 | 670.00 ▼0.56 | 56.00 ▲3.77 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.23 ▲0.01 | 99.15 ▼4.55 | 44.13 ▼3.23 |
Add New /wp-admin/post-new.php?post_type=ctabox | 1,891 | 2.77 | 53.29 | 58.71 |
All CTA Box /wp-admin/edit.php?post_type=ctabox | 1,093 | 2.12 | 31.87 | 31.07 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- 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
Good news, no errors were detected
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
Almost there! Just fix the following items
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/switch-cta-box/inc/post_type_meta_feilds.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/switch-cta-box/inc/box_display_template.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/switch-cta-box/inc/post_type.php:65
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/switch-cta-box/inc/shortcode_setup.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/switch-cta-box/inc/box_display_orng_template.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/switch-cta-box/inc/admin/admin_enuqe.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/switch-cta-box/inc/admin/admin_modify.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/switch-cta-box/inc/box_display_wid_template.php:2
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: call to action, promotion, add management, advertising, contents...
switch-cta-box/wp-ss-box.php 92% from 13 tests
"Switch CTA Box" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("switch-cta-box.php" instead of "wp-ss-box.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin524 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 71 | 56 | 282 |
CSS | 3 | 35 | 23 | 212 |
JavaScript | 1 | 0 | 2 | 30 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
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 | 17 | |
▷ Named functions | 17 | 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
6 PNG files occupy 0.19MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
psd/psd-tem-cta-box-3.PNG | 31.66KB | 11.87KB | ▼ 62.50% |
psd/psd-tem-cta-box-1.png | 33.78KB | 12.16KB | ▼ 64.00% |
inc/admin/preview/template_2.png | 31.80KB | 9.87KB | ▼ 68.96% |
psd/psd-widtem-cta-box-2.png | 31.80KB | 9.87KB | ▼ 68.96% |
inc/admin/preview/template_1.png | 33.78KB | 12.16KB | ▼ 64.00% |