10% simple-google-adsense-par-jm-crea

Code Review | Simple Google Adsense par JM Créa

WordPress plugin Simple Google Adsense par JM Créa scored10%from 54 tests.

About plugin

  • Plugin page: simple-google-ads...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 27, 2015
  • Latest release: Apr 14, 2016
  • Number of updates: 16
  • Update frequency: every 14.5 days
  • Top authors: Dge-06 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,806 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.30 ▼1.11
Dashboard /wp-admin3.33 ▲0.0348.56 ▼9.98
Posts /wp-admin/edit.php3.38 ▲0.0348.30 ▼5.66
Add New Post /wp-admin/post-new.php5.91 ▲0.0386.36 ▼13.09
Media Library /wp-admin/upload.php3.26 ▲0.0334.38 ▼1.41
Simple Google Adsense /wp-admin/tools.php?page=sga3.2031.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8514.74 ▲0.122.04 ▲0.1748.25 ▲3.23
Dashboard /wp-admin2,207 ▲165.83 ▼0.0597.76 ▼8.4639.81 ▼3.85
Posts /wp-admin/edit.php2,093 ▲41.99 ▲0.0338.73 ▼0.7634.32 ▼1.45
Add New Post /wp-admin/post-new.php1,531 ▼223.14 ▼0.01658.20 ▼44.0451.41 ▼9.61
Media Library /wp-admin/upload.php1,392 ▲44.17 ▼0.0399.04 ▼14.8644.50 ▼1.71
Simple Google Adsense /wp-admin/tools.php?page=sga9402.1823.2632.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

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 === )
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP13618166

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 code0.19
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
screenshot-1.png197.39KB94.30KB▼ 52.23%