Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/simple-google-adsense-par-jm-crea/index.php+49
Undefined variable: sql
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.54ms] Passed 4 tests
Analyzing server-side resources used by Simple Google Adsense par JM Créa
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.30 ▼1.11 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.56 ▼9.98 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 48.30 ▼5.66 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 86.36 ▼13.09 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.38 ▼1.41 |
Simple Google Adsense /wp-admin/tools.php?page=sga | 3.20 | 31.93 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_sga |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Google Adsense par JM Créa
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲85 | 14.74 ▲0.12 | 2.04 ▲0.17 | 48.25 ▲3.23 |
Dashboard /wp-admin | 2,207 ▲16 | 5.83 ▼0.05 | 97.76 ▼8.46 | 39.81 ▼3.85 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▲0.03 | 38.73 ▼0.76 | 34.32 ▼1.45 |
Add New Post /wp-admin/post-new.php | 1,531 ▼2 | 23.14 ▼0.01 | 658.20 ▼44.04 | 51.41 ▼9.61 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.17 ▼0.03 | 99.04 ▼14.86 | 44.50 ▼1.71 |
Simple Google Adsense /wp-admin/tools.php?page=sga | 940 | 2.18 | 23.26 | 32.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_sga
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/tools.php?page=sga
- > Notice in wp-content/plugins/simple-google-adsense-par-jm-crea/index.php+66
Undefined variable: sql
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 take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-google-adsense-par-jm-crea/index.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 23 tag instead of maximum 10
- Requires at least: Invalid plugin version format
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== simple-google-adsense-par-jm-crea ===
)
simple-google-adsense-par-jm-crea/index.php 92% from 13 tests
The main file in "Simple Google Adsense par JM Créa" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-google-adsense-par-jm-crea.php" instead of "index.php")
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
Success! There were no dangerous files found in this plugin166 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 36 | 18 | 166 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
1 PNG file occupies 0.19MB with 0.10MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 197.39KB | 94.30KB | ▼ 52.23% |