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.10MB] [CPU: ▼6.13ms] Passed 4 tests
An overview of server-side resources used by Simple Google AdSense - Simple & Best Google AdSense Plugin for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 34.10 ▼11.45 |
Dashboard /wp-admin | 3.50 ▲0.20 | 104.50 ▲56.82 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 49.07 ▼3.02 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 90.60 ▼10.56 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 36.02 ▲0.52 |
Google AdSense /wp-admin/options-general.php?page=simple-google-adsense-settings | 3.29 | 34.98 |
Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Google AdSense - Simple & Best Google AdSense Plugin for WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲145 | 13.20 ▼0.75 | 1.54 ▼0.84 | 40.82 ▼6.31 |
Dashboard /wp-admin | 2,305 ▲117 | 4.88 ▼0.04 | 109.54 ▲3.25 | 41.26 ▼1.20 |
Posts /wp-admin/edit.php | 2,133 ▲44 | 2.03 ▲0.03 | 41.30 ▼0.25 | 41.61 ▲5.98 |
Add New Post /wp-admin/post-new.php | 1,573 ▲45 | 23.36 ▲4.94 | 689.29 ▲41.08 | 54.62 ▼2.55 |
Media Library /wp-admin/upload.php | 1,429 ▲38 | 4.22 ▼0.02 | 95.22 ▼3.74 | 45.07 ▼1.17 |
Google AdSense /wp-admin/options-general.php?page=simple-google-adsense-settings | 817 | 2.06 | 24.75 | 27.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 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)
Good news, no errors were detected
SRP 50% 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 items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/simple-google-adsense/includes/admin/dashboard/class-mantrabrain-admin-dashboard.php:122
- > 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)
There were no browser issues 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
3 plugin tags: google ad, adsense, google
simple-google-adsense/simple-google-adsense.php 92% from 13 tests
Analyzing the main PHP file in "Simple Google AdSense - Simple & Best Google AdSense Plugin for WordPress" version 1.0.11
It is important to fix the following:
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected565 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 210 | 338 | 565 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 10.20 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 3 | 60.00% |
Methods | 43 | |
▷ Static methods | 5 | 11.63% |
▷ Public methods | 32 | 74.42% |
▷ Protected methods | 5 | 11.63% |
▷ Private methods | 6 | 13.95% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 9 | 64.29% |
▷ Class constants | 5 | 35.71% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin