Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/cta-widget-manager/cta-widgetmanager.php+23
Methods with the same name as their class will not be constructors in a future version of PHP; WidgetCta has a deprecated constructor
Server metrics [RAM: ▼1.83MB] [CPU: ▼190.19ms] Passed 4 tests
An overview of server-side resources used by OrbitCarrot CTA Widget Manager
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.80 ▼1.04 | 6.30 ▼31.03 |
Dashboard /wp-admin | 1.82 ▼1.24 | 5.33 ▼37.13 |
Posts /wp-admin/edit.php | 1.82 ▼1.29 | 8.67 ▼43.27 |
Add New Post /wp-admin/post-new.php | 1.82 ▼3.62 | 5.78 ▼649.33 |
Media Library /wp-admin/upload.php | 1.82 ▼1.18 | 6.25 ▼24.36 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_cta |
Browser metrics Passed 4 tests
OrbitCarrot CTA Widget Manager: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,705 ▲109 | 15.92 ▲0.03 | 9.29 ▲1.83 | 47.59 ▲14.49 |
Dashboard /wp-admin | 2,973 ▲39 | 6.08 ▲0.14 | 158.22 ▲5.09 | 123.46 ▲6.62 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▼0.01 | 70.18 ▲0.39 | 98.13 ▼5.56 |
Add New Post /wp-admin/post-new.php | 1,502 ▼92 | 18.59 ▼0.24 | 378.66 ▼17.93 | 113.94 ▲1.24 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.02 ▼0.03 | 148.97 ▼4.50 | 126.32 ▲0.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/cta-widget-manager/cta-widgetmanager.php+23
Methods with the same name as their class will not be constructors in a future version of PHP; WidgetCta has a deprecated constructor
- Zombie WordPress options were found after uninstall: 1 option
- widget_cta
Smoke tests 75% 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 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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cta-widget-manager/cta-widgetmanager.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Back-end: OrbitCarrot CTA Widget option.), #2 (Back-end: Once added to the Sidebar, you can enter the details of your CTA.), #3 (Front-end: Live CTA widget on a Wordpress website.)
- Tags: You are using too many tags: 19 tag instead of maximum 10
cta-widget-manager/cta-widgetmanager.php 92% from 13 tests
The primary PHP file in "OrbitCarrot CTA Widget Manager" version 1.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cta-widget-manager.php" instead of "cta-widgetmanager.php")
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
No dangerous file extensions were detected140 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 32 | 11 | 138 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/img/redcta.png | 1.20KB | 0.10KB | ▼ 91.89% |
css/img/redbutton.png | 2.72KB | 1.10KB | ▼ 59.35% |
css/img/unstyled.png | 1.26KB | 0.11KB | ▼ 91.24% |
css/img/bluebutton.png | 2.72KB | 1.03KB | ▼ 62.32% |