Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.53ms] Passed 4 tests
An overview of server-side resources used by Easy Google AdSense
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.36 ▲4.16 |
Dashboard /wp-admin | 3.37 ▲0.02 | 46.03 ▼15.61 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 46.95 ▲3.50 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 92.79 ▼3.97 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.66 ▲1.98 |
Easy Google AdSense /wp-admin/options-general.php?page=easy-google-adsense-settings | 3.25 | 30.15 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Easy Google AdSense
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.69 ▲0.31 | 1.79 ▲0.05 | 43.68 ▲4.10 |
Dashboard /wp-admin | 2,213 ▲22 | 4.83 ▼1.05 | 108.49 ▲4.22 | 42.77 ▲1.09 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.04 ▲0.01 | 39.71 ▲3.03 | 35.40 ▲0.18 |
Add New Post /wp-admin/post-new.php | 1,517 ▼2 | 17.68 ▼5.62 | 673.91 ▲64.64 | 53.69 ▲0.65 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.23 ▲0.05 | 98.78 ▲0.63 | 43.27 ▼1.38 |
Easy Google AdSense /wp-admin/options-general.php?page=easy-google-adsense-settings | 818 | 2.03 | 25.32 | 28.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: ads, adsense, google, ad manager, google adsense
easy-google-adsense/main.php 85% from 13 tests
The primary PHP file in "Easy Google AdSense" version 1.0.11 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("easy-google-adsense.php" instead of "main.php")
- Domain Path: The domain path points to a folder that does not exist ("/languages")
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 detected336 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 31 | 15 | 302 |
CSS | 1 | 0 | 0 | 34 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 42.00 |
▷ Minimum class complexity | 42.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 4.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
addons/images/ega-no-ads-wp-users.png | 2.12KB | 1.28KB | ▼ 39.41% |
addons/images/ega-bottom-anchor-ads.png | 2.62KB | 1.76KB | ▼ 32.97% |