Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼8.04ms] Passed 4 tests
This is a short check of server-side resources used by Better AdSense
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 39.08 ▼3.38 |
Dashboard /wp-admin | 3.38 ▲0.08 | 45.76 ▼2.91 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 48.94 ▼2.00 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 85.29 ▼23.85 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 36.00 ▲2.01 |
Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_recent-posts |
widget_2 |
widget_theysaidso_widget |
widget_5 |
theysaidso_admin_options |
widget_recent-comments |
widget_4 |
can_compress_scripts |
widget_3 |
db_upgraded |
... |
Browser metrics Passed 4 tests
Better AdSense: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲85 | 13.25 ▼1.12 | 1.74 ▼0.27 | 44.64 ▼2.44 |
Dashboard /wp-admin | 2,229 ▲44 | 5.86 ▼0.02 | 102.47 ▼1.74 | 38.50 ▼4.01 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.00 ▼0.04 | 35.34 ▼6.58 | 33.28 ▼4.22 |
Add New Post /wp-admin/post-new.php | 1,531 ▼3 | 17.64 ▼5.47 | 670.87 ▲76.42 | 55.19 ▲3.59 |
Media Library /wp-admin/upload.php | 1,402 ▲20 | 4.21 ▲0.01 | 93.55 ▼5.14 | 42.87 ▼0.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 11 options
- widget_2
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_3
- can_compress_scripts
- widget_4
- widget_recent-posts
- db_upgraded
- widget_5
- ...
Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: google adsense, ad manager, advertising, ads, adsense...
better-adsense/better-adsense.php Passed 13 tests
This is the main PHP file of "Better AdSense" version 1.0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
100 characters long description:
Wordpress Adsense plugin with responsive units support. Now you can earn more money with our plugin.
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 detected397 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 101 | 76 | 269 |
CSS | 1 | 20 | 0 | 115 |
JavaScript | 1 | 1 | 0 | 13 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 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 | 8 | |
▷ Named functions | 8 | 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
No PNG files were detected