Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼1.66ms] Passed 4 tests
A check of server-side resources used by Easy Call To Action
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 45.16 ▲2.22 |
Dashboard /wp-admin | 3.40 ▲0.10 | 48.66 ▲0.51 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 50.56 ▲2.51 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 86.50 ▼11.43 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 39.05 ▲2.07 |
Settings /wp-admin/admin.php?page=easy-call-to-action-settings | 3.29 | 32.14 |
Easy Call To Action /wp-admin/admin.php?page=easy-call-to-action | 3.44 | 34.66 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 17 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_mica_ecta |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Easy Call To Action
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲70 | 14.28 ▼0.14 | 1.70 ▼0.23 | 43.27 ▼0.72 |
Dashboard /wp-admin | 2,247 ▲70 | 5.58 ▲0.01 | 89.97 ▼0.71 | 78.95 ▲34.76 |
Posts /wp-admin/edit.php | 2,170 ▲67 | 2.00 ▼0.01 | 38.24 ▼2.35 | 34.88 ▼2.93 |
Add New Post /wp-admin/post-new.php | 1,590 ▲64 | 23.16 ▲0.35 | 663.82 ▲13.91 | 53.53 ▼8.83 |
Media Library /wp-admin/upload.php | 1,461 ▲67 | 4.22 ▲0.02 | 103.95 ▼6.05 | 67.33 ▲19.99 |
Settings /wp-admin/admin.php?page=easy-call-to-action-settings | 886 | 2.01 | 24.44 | 120.55 |
Easy Call To Action /wp-admin/admin.php?page=easy-call-to-action | 1,526 | 2.11 | 35.79 | 57.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_mica_ecta
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 50% 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 0% 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 fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/easy-call-to-action/inc/admin/add-new-template.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-call-to-action/inc/admin/ecta-settings.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/easy-call-to-action/easy-call-to-action.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/easy-call-to-action/inc/admin/admin-template.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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
4 plugin tags: easy call to action, cta, call to action, shortcode
easy-call-to-action/easy-call-to-action.php 85% from 13 tests
"Easy Call To Action" version 1.0'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:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.7" instead of "5.2")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
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
Success! There were no dangerous files found in this plugin1,682 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 118 | 49 | 1,037 |
CSS | 2 | 46 | 7 | 333 |
JavaScript | 4 | 11 | 17 | 269 |
SVG | 1 | 0 | 1 | 43 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 11.00 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin