94% add-adsense

Code Review | Add Adsense

WordPress plugin Add Adsense scored 94% from 53 tests.

About plugin

  • Plugin page: add-adsense
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.6
  • WordPress version: 5.8.1
  • First release: Sep 8, 2016
  • Latest release: Sep 8, 2016
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: seosbg (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 848 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Add Adsense
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1234.79 ▲14.09
Dashboard /wp-admin3.06 ▲0.0142.48 ▲0.93
Posts /wp-admin/edit.php3.12 ▲0.0137.87 ▼1.23
Add New Post /wp-admin/post-new.php5.43 ▼0.0093.89 ▼1,097.07
Media Library /wp-admin/upload.php3.01 ▲0.0034.50 ▼6.68

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Add Adsense
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,699 ▲11716.26 ▲0.788.21 ▲0.4147.03 ▼1.96
Dashboard /wp-admin2,945 ▲925.87 ▲0.05133.13 ▲4.57138.37 ▲29.56
Posts /wp-admin/edit.php2,746 ▲402.67 ▼0.0266.38 ▼1.8392.31 ▲9.37
Add New Post /wp-admin/post-new.php1,669 ▼18218.82 ▲1.04371.74 ▼2.93104.70 ▼10.11
Media Library /wp-admin/upload.php1,809 ▲345.01 ▲0.01127.75 ▼24.68140.09 ▲24.23

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix 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_action() in wp-content/plugins/add-adsense/add-adsense.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Admin Panel view of submitted form data.)
You can take inspiration from this readme.txt

add-adsense/add-adsense.php Passed 13 tests

The main file in "Add Adsense" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
76 characters long description:
Add Adsense WordPress plugin allows you to add adsense fields in your theme.

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
Everything looks great! No dangerous files found in this plugin178 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PO File18935

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.04
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions9100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo.png11.25KB4.39KB▼ 60.99%
screenshot-1.png10.75KB4.28KB▼ 60.21%
images/icon.png1.58KB1.43KB▼ 9.69%