Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▲0.95ms] Passed 4 tests
Analyzing server-side resources used by CucuAds
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.01 | 54.01 ▲10.45 |
Dashboard /wp-admin | 3.58 ▲0.02 | 52.36 ▼0.29 |
Posts /wp-admin/edit.php | 3.70 ▲0.02 | 55.04 ▲1.64 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.02 | 102.20 ▼3.53 |
Media Library /wp-admin/upload.php | 3.51 ▲0.02 | 43.39 ▲5.97 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
cucuads_script_code |
Browser metrics Passed 4 tests
CucuAds: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲52 | 14.35 ▼0.33 | 1.85 ▼0.03 | 42.75 ▼3.99 |
Dashboard /wp-admin | 2,204 ▲30 | 5.70 ▲0.09 | 82.89 ▼3.50 | 85.68 ▲45.17 |
Posts /wp-admin/edit.php | 2,127 ▲24 | 1.98 ▼0.05 | 39.65 ▼0.53 | 34.29 ▼0.60 |
Add New Post /wp-admin/post-new.php | 1,701 ▲156 | 22.45 ▼0.75 | 722.33 ▲7.37 | 54.72 ▼6.69 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.24 ▲0.02 | 97.22 ▼19.29 | 72.53 ▲22.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/cucuads/inc/cucuads-admin.php
- > /wp-content/plugins/cucuads/cucuads.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
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
7 plugin tags: interstitial, ads, ad networks, income, monetize...
cucuads/cucuads.php 92% from 13 tests
Analyzing the main PHP file in "CucuAds" version 1.0.1
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 381 characters long)
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 plugin135 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 26 | 10 | 89 |
PO File | 1 | 37 | 69 | 46 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 7 | |
▷ Static methods | 2 | 28.57% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon32.png | 1.35KB | 1.25KB | ▼ 7.47% |
images/icon16.png | 0.58KB | 0.55KB | ▼ 4.71% |
images/icon.png | 8.50KB | 3.13KB | ▼ 63.15% |
assets/icon-256x256.png | 10.69KB | 5.63KB | ▼ 47.32% |
assets/icon-128x128.png | 3.96KB | 2.37KB | ▼ 40.15% |