Benchmarks
Plugin footprint Passed 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.22MB] [CPU: ▼311.55ms] Passed 4 tests
An overview of server-side resources used by AdRedux - Insert Ads & Codes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.23 | 79.23 ▼32.17 |
Dashboard /wp-admin | 3.66 ▲0.26 | 37.31 ▲3.73 |
Posts /wp-admin/edit.php | 3.88 ▲0.25 | 43.33 ▲5.60 |
Add New Post /wp-admin/post-new.php | 7.12 ▲0.15 | 97.16 ▼1,220.32 |
Media Library /wp-admin/upload.php | 3.54 ▲0.25 | 26.45 ▲2.55 |
Server storage [IO: ▲0.81MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 1 new option
New WordPress options |
---|
adredux_settings |
Browser metrics Passed 4 tests
Checking browser requirements for AdRedux - Insert Ads & Codes
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,809 ▲55 | 16.17 ▲0.16 | 5.73 ▼0.95 | 2.16 ▼0.62 |
Dashboard /wp-admin | 2,905 ▲51 | 6.16 ▼0.03 | 121.06 ▼22.33 | 240.07 ▲31.72 |
Posts /wp-admin/edit.php | 2,708 ▲20 | 3.24 ▲0.01 | 69.72 ▲5.10 | 143.95 ▼7.95 |
Add New Post /wp-admin/post-new.php | 1,681 ▲20 | 19.80 ▲3.11 | 385.90 ▼44.62 | 200.26 ▲44.75 |
Media Library /wp-admin/upload.php | 1,718 ▲17 | 5.47 ▼0.08 | 145.22 ▼6.60 | 233.72 ▲39.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/adredux/admin/settings-page.php
- > /wp-content/plugins/adredux/adredux.php
- > /wp-content/plugins/adredux/defaults.php
- > /wp-content/plugins/adredux/uninstall.php
- > /wp-content/plugins/adredux/adredux_displayads.php
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/adredux/admin/partials/dashboard-data.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/adredux/admin/partials/dashboard-about.php:2
- > PHP Fatal error
Uncaught Error: Class 'Adredux_Settings_Page' not found in wp-content/plugins/adredux/admin/partials/dashboard-page.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/adredux/admin/partials/dashboard-general.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/adredux/admin/partials/dashboard-sidebar.php:7
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 35 tag instead of maximum 10
adredux/adredux.php 92% from 13 tests
"AdRedux - Insert Ads & Codes" version 1.2.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 653 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected808 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 232 | 147 | 776 |
CSS | 2 | 7 | 3 | 32 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 4.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 21 | |
▷ Static methods | 1 | 4.76% |
▷ Public methods | 19 | 90.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 9.52% |
Functions | 9 | |
▷ Named functions | 7 | 77.78% |
▷ Anonymous functions | 2 | 22.22% |
Constants | 4 | |
▷ Global constants | 4 | 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
4 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 58.77KB | 27.66KB | ▼ 52.92% |
assets/icon-256x256.png | 23.54KB | 9.99KB | ▼ 57.57% |
assets/banner-772x250.png | 26.27KB | 11.30KB | ▼ 56.99% |
assets/icon-128x128.png | 7.87KB | 4.16KB | ▼ 47.16% |