Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.41MB] [CPU: ▲0.10ms] Passed 4 tests
Server-side resources used by Optimate Ads - Advance Ad Inserter AdSense & Ad Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.39 | 40.84 ▼0.17 |
Dashboard /wp-admin | 3.72 ▲0.42 | 49.29 ▼2.71 |
Posts /wp-admin/edit.php | 3.77 ▲0.41 | 55.03 ▲5.31 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.43 | 89.45 ▼2.04 |
Media Library /wp-admin/upload.php | 3.64 ▲0.41 | 41.76 ▲7.55 |
Server storage [IO: ▲0.38MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_ssag_optimate_ad_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Optimate Ads - Advance Ad Inserter AdSense & Ad Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,937 ▲191 | 13.78 ▼0.49 | 6.09 ▲4.21 | 39.93 ▼5.74 |
Dashboard /wp-admin | 2,235 ▲44 | 5.12 ▲0.09 | 114.43 ▲7.26 | 42.37 ▼1.54 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 2.31 ▲0.27 | 37.94 ▼3.70 | 32.84 ▼2.78 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 23.08 ▼0.06 | 636.53 ▼62.23 | 51.47 ▼5.84 |
Media Library /wp-admin/upload.php | 1,420 ▲32 | 4.34 ▲0.19 | 98.77 ▼3.20 | 41.95 ▼7.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_ssag_optimate_ad_widget
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× 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/optimate-ads/widgets/class-optimate-ad-widget.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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
6 plugin tags: google adsense ads, adsense ads, ad inserter, adstxt, ads placement...
optimate-ads/class-opa-main-class.php 85% from 13 tests
The principal PHP file in "Optimate Ads - Advance Ad Inserter AdSense & Ad Manager" v. 1.0.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("optimate-ads.php" instead of "class-opa-main-class.php")
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin8,427 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 1,095 | 286 | 4,953 |
PHP | 4 | 300 | 261 | 2,525 |
CSS | 3 | 44 | 17 | 949 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 168)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 133.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 439.00 |
Average method complexity | 12.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 168.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 45 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
media/images/icon.png | 6.94KB | 3.89KB | ▼ 43.96% |