83% wordpress-plugin-for-simple-google-adsense-insertion

Code Review | WP Simple Adsense Insertion

WordPress plugin WP Simple Adsense Insertion scored83%from 54 tests.

About plugin

  • Plugin page: wordpress-plugin-...
  • Plugin version: v2.1...
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: Nov 12, 2008
  • Latest release: Jul 25, 2023
  • Number of updates: 36
  • Update frequency: every 149.1 days
  • Top authors: mra13 (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

6,000+ active /212,605 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼8.43ms] Passed 4 tests

Analyzing server-side resources used by WP Simple Adsense Insertion
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.76 ▼2.68
Dashboard /wp-admin3.31 ▼0.0343.00 ▼13.61
Posts /wp-admin/edit.php3.36 ▲0.0145.55 ▲0.39
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.79 ▼15.56
Media Library /wp-admin/upload.php3.23 ▲0.0134.71 ▼1.87
Adsense Insertion /wp-admin/options-general.php?page=wordpress-plugin-for-simple-google-adsense-insertion/WP-Simple-Adsense-Insertion.php3.2031.93

Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WP Simple Adsense Insertion
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.26 ▼1.122.17 ▲0.5843.16 ▲3.91
Dashboard /wp-admin2,210 ▲255.85 ▲0.97110.13 ▲2.1737.74 ▼5.46
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0440.44 ▲4.4036.31 ▲0.77
Add New Post /wp-admin/post-new.php1,517 ▼1117.74 ▼0.43672.74 ▲81.2663.03 ▲10.65
Media Library /wp-admin/upload.php1,392 ▲44.18 ▼0.1393.26 ▼5.8840.71 ▼5.08
Adsense Insertion /wp-admin/options-general.php?page=wordpress-plugin-for-simple-google-adsense-insertion/WP-Simple-Adsense-Insertion.php9522.0522.0028.52

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wordpress-plugin-for-simple-google-adsense-insertion/WP-Simple-Adsense-Insertion.php:17

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 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
  • Screenshots: Add an image for screenshot #1 (Check out this Plugin in action at https://www.tipsandtricks-hq.com)
The official readme.txt is a good inspiration

wordpress-plugin-for-simple-google-adsense-insertion/WP-Simple-Adsense-Insertion.php 85% from 13 tests

The principal PHP file in "WP Simple Adsense Insertion" v. v2.1... is loaded by WordPress automatically on each request
You should first fix the following items:
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "v2.1...")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wordpress-plugin-for-simple-google-adsense-insertion.php" instead of "WP-Simple-Adsense-Insertion.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin217 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15225217

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin