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
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/a-ads/core.php+46
Undefined variable: aads_core_functions
Server metrics [RAM: ▼1.97MB] [CPU: ▼57.99ms] Passed 4 tests
A check of server-side resources used by A-ADS
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 3.75 ▼36.17 |
Dashboard /wp-admin | 2.05 ▼1.30 | 11.21 ▼56.54 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.83 ▼42.48 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.74 ▼96.76 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.05 ▼32.63 |
Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_aads_ads_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A-ADS: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.70 ▼0.67 | 1.98 ▲0.18 | 42.08 ▼1.84 |
Dashboard /wp-admin | 2,206 ▲15 | 4.87 ▼0.02 | 110.25 ▼7.39 | 37.53 ▼8.53 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 2.02 ▲0.06 | 37.97 ▲2.20 | 34.47 ▼1.34 |
Add New Post /wp-admin/post-new.php | 1,530 ▼3 | 23.08 ▲0.09 | 672.82 ▲34.74 | 59.15 ▲5.37 |
Media Library /wp-admin/upload.php | 1,385 ▲3 | 4.22 ▲0.05 | 97.76 ▼4.17 | 41.43 ▼3.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/a-ads/core.php+46
Undefined variable: aads_core_functions
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_aads_ads_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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/a-ads/A-ADS.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'wp_widget' not found in wp-content/plugins/a-ads/widget.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/a-ads/core.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== a-ads ===
)
a-ads/A-ADS.php 69% from 13 tests
The main PHP script in "A-ADS" version 1.1.0 is automatically included on every request by WordPress
It is important to fix the following:
- Domain Path: The domain path should use only dashes and lowercase characters ("/A-ADS")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("a-ads.php" instead of "A-ADS.php")
- Requires at least: Required version must match the one declared in readme.txt ("3.5" instead of "5.2")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected263 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 82 | 89 | 263 |
CSS | 1 | 0 | 1 | 0 |
JavaScript | 1 | 0 | 1 | 0 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 21.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 5.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 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 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected