Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.35MB] [CPU: ▼4.47ms] Passed 4 tests
This is a short check of server-side resources used by Experto CTA Widget - Call To Action, Sticky CTA, Floating Button Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 51.08 ▲5.45 |
Dashboard /wp-admin | 3.67 ▲0.37 | 52.63 ▲5.70 |
Posts /wp-admin/edit.php | 3.78 ▲0.42 | 53.22 ▼2.15 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.41 | 90.53 ▼24.60 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 41.98 ▲3.43 |
ESC Dashboard /wp-admin/admin.php?page=esc | 3.57 | 41.69 |
Settings /wp-admin/admin.php?page=esc-settings | 3.61 | 39.68 |
Server storage [IO: ▲2.42MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 47 new files
Database: no new tables, 45 new options
New WordPress options |
---|
esc_box_secondary_color |
esc_box5_clicked |
db_upgraded |
esc_box3_icon |
esc_body_desc_setting |
esc_box4_icon |
esc_box6_description |
esc_box2_form_placeholder |
esc_box6_icon |
esc_box_text_color |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Experto CTA Widget - Call To Action, Sticky CTA, Floating Button Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,473 ▲712 | 13.46 ▼0.89 | 10.18 ▲8.11 | 18.18 ▼25.92 |
Dashboard /wp-admin | 2,599 ▲419 | 5.64 ▲0.03 | 86.79 ▼3.92 | 52.56 ▲7.81 |
Posts /wp-admin/edit.php | 2,367 ▲264 | 2.03 ▲0.01 | 45.59 ▲1.47 | 49.29 ▲11.43 |
Add New Post /wp-admin/post-new.php | 1,766 ▲232 | 22.53 ▲4.32 | 599.21 ▼27.56 | 58.68 ▼10.23 |
Media Library /wp-admin/upload.php | 1,664 ▲264 | 4.20 ▼0.07 | 101.44 ▼2.74 | 52.21 ▲9.38 |
ESC Dashboard /wp-admin/admin.php?page=esc | 1,237 | 2.18 | 27.46 | 54.12 |
Settings /wp-admin/admin.php?page=esc-settings | 1,373 | 1.87 | 27.53 | 70.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/experto-cta-widget/admin/partials/esc-screen-preview.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/experto-cta-widget/admin/partials/esc-admin-settings.php:60
- > PHP Notice
Undefined variable: tab in wp-content/plugins/experto-cta-widget/admin/partials/esc-screen-preview.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/experto-cta-widget/admin/partials/esc-admin-display.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/experto-cta-widget/admin/partials/esc-admin-dashboard.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/experto-cta-widget/admin/partials/dashboard/esc-graph.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/experto-cta-widget/public/partials/esc-public-display.php:8
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=esc-settings
- > Rendering (warning) in unknown
/wp-admin/admin.php?page=esc-settings 255 The specified value "#000" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 62 tag instead of maximum 10
experto-cta-widget/esc.php 77% from 13 tests
Analyzing the main PHP file in "Experto CTA Widget - Call To Action, Sticky CTA, Floating Button Plugin" version 1.1.1
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 231 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("experto-cta-widget.php" instead of "esc.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin7,084 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 4 | 0 | 8 | 4,078 |
PHP | 15 | 378 | 171 | 1,466 |
CSS | 3 | 19 | 42 | 1,187 |
JavaScript | 2 | 206 | 62 | 353 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 11.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 2 | 4.44% |
▷ Public methods | 41 | 91.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 8.89% |
Functions | 4 | |
▷ Named functions | 4 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/img/uxdesign-logo-icon.png | 1.74KB | 1.22KB | ▼ 30.01% |