Benchmarks
Plugin footprint 65% 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.25MB] [CPU: ▼3.90ms] Passed 4 tests
Server-side resources used by Corner Ad
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 38.15 ▼1.81 |
Dashboard /wp-admin | 3.56 ▲0.25 | 48.49 ▼0.61 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 45.17 ▼3.30 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 86.27 ▼9.88 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 37.04 ▲0.15 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 26 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_corner_ad_img |
wp_corner_ad |
New WordPress options |
---|
installed_corner-ad |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
CORNER_AD_PLUGIN_VERSION |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Corner Ad
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.61 ▼0.65 | 4.14 ▲1.98 | 39.33 ▼10.75 |
Dashboard /wp-admin | 2,210 ▲25 | 5.90 ▼0.11 | 103.18 ▼5.50 | 40.33 ▲0.48 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.02 | 36.36 ▼1.39 | 32.76 ▲0.03 |
Add New Post /wp-admin/post-new.php | 6,440 ▲4,906 | 23.53 ▲0.27 | 846.66 ▲163.64 | 68.67 ▲13.31 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.16 ▼0.02 | 96.75 ▼12.85 | 42.08 ▼7.44 |
Corner AD /wp-admin/corner-ad.php | 26 | 0.44 | 0.08 | 13.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie tables detected upon uninstall: 2 tables
- wp_corner_ad_img
- wp_corner_ad
- Zombie WordPress options detected upon uninstall: 8 options
- db_upgraded
- can_compress_scripts
- installed_corner-ad
- theysaidso_admin_options
- CORNER_AD_PLUGIN_VERSION
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'SiteOrigin_Widget' not found in wp-content/plugins/corner-ad/pagebuilders/siteorigin/siteorigin-cpca/siteorigin-cpca.php:8
- > PHP Fatal error
Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/corner-ad/pagebuilders/beaverbuilder/cornerad/cornerad.php:2
- > PHP Fatal error
Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/corner-ad/pagebuilders/beaverbuilder/cornerad/cornerad.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/corner-ad/banner.php:105
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/corner-ad/banner.php:105
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/corner-ad.php
- > Network (severe)
wp-admin/corner-ad.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
corner-ad/corner-ad.php 92% from 13 tests
The principal PHP file in "Corner Ad" v. 1.0.61 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 227 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin2,325 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 188 | 110 | 1,300 |
JavaScript | 6 | 81 | 63 | 600 |
PO File | 1 | 99 | 105 | 237 |
HTML | 1 | 1 | 0 | 180 |
CSS | 1 | 0 | 0 | 7 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 5.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 2 | 7.41% |
▷ Public methods | 22 | 81.48% |
▷ Protected methods | 2 | 7.41% |
▷ Private methods | 3 | 11.11% |
Functions | 21 | |
▷ Named functions | 19 | 90.48% |
▷ Anonymous functions | 2 | 9.52% |
Constants | 6 | |
▷ Global constants | 6 | 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
There were not PNG files found in your plugin