Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼5.99ms] Passed 4 tests
Analyzing server-side resources used by AdRedux - Insert Ads & Analytics Codes
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 35.27 ▼10.42 |
Dashboard /wp-admin | 3.56 ▲0.21 | 52.31 ▼14.87 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 57.93 ▲3.68 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.26 | 101.44 ▼2.35 |
Media Library /wp-admin/upload.php | 3.48 ▲0.26 | 45.89 ▲7.31 |
Server storage [IO: ▲0.13MB] [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: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
adredux_settings |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
AdRedux - Insert Ads & Analytics Codes: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲65 | 13.27 ▼0.91 | 1.88 ▼0.28 | 42.56 ▼1.20 |
Dashboard /wp-admin | 2,225 ▲37 | 5.03 ▲0.16 | 109.91 ▲2.96 | 42.31 ▲1.33 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.04 ▼0.00 | 40.46 ▼1.31 | 35.39 ▼0.92 |
Add New Post /wp-admin/post-new.php | 1,547 ▲28 | 23.22 ▲0.06 | 659.69 ▼7.39 | 59.32 ▲11.93 |
Media Library /wp-admin/upload.php | 1,401 ▲16 | 4.13 ▼0.06 | 103.99 ▲1.73 | 45.43 ▼2.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 5× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/adredux/defaults.php
- > /wp-content/plugins/adredux/admin/settings-page.php
- > /wp-content/plugins/adredux/uninstall.php
- > /wp-content/plugins/adredux/adredux_displayads.php
- > /wp-content/plugins/adredux/adredux.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > 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 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: Call to undefined function _e() in wp-content/plugins/adredux/admin/partials/dashboard-sidebar.php:7
- > 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
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: analytics, google adsense, ad manager, ads, google analytics
adredux/adredux.php 92% from 13 tests
"AdRedux - Insert Ads & Analytics Codes" version 1.3.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 240 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin868 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 239 | 147 | 836 |
CSS | 2 | 7 | 3 | 32 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 4.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.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 | 22 | |
▷ Static methods | 1 | 4.55% |
▷ Public methods | 20 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 9.09% |
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
2 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner.png | 58.77KB | 27.66KB | ▼ 52.92% |
assets/icon.png | 7.87KB | 4.16KB | ▼ 47.16% |