94% adsmiddle

Code Review | AdsMiddle

WordPress plugin AdsMiddle scored 94% from 54 tests.

About plugin

  • Plugin page: adsmiddle
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.1
  • WordPress version: 5.9.2
  • First release: May 14, 2015
  • Latest release: May 19, 2015
  • Number of updates: 13
  • Update frequency: every 0.4 days
  • Top authors: wjharil (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,700 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼291.31ms] Passed 4 tests

Server-side resources used by AdsMiddle
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0159.89 ▲2.58
Dashboard /wp-admin3.41 ▲0.0142.99 ▲5.46
Posts /wp-admin/edit.php3.65 ▲0.0144.63 ▲3.32
Add New Post /wp-admin/post-new.php6.88 ▼0.0996.77 ▼1,176.60
Media Library /wp-admin/upload.php3.30 ▲0.0034.43 ▲6.88
AdsMiddle /wp-admin/options-general.php?page=wp_addmidle3.2922.75

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for AdsMiddle
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲1415.26 ▼0.355.75 ▼0.002.28 ▼0.10
Dashboard /wp-admin2,897 ▲366.15 ▼0.02115.89 ▼14.31156.05 ▼11.52
Posts /wp-admin/edit.php2,696 ▲23.24 ▲0.0061.00 ▼0.06139.90 ▲0.90
Add New Post /wp-admin/post-new.php1,784 ▲3222.89 ▲1.62408.75 ▼29.59157.21 ▼2.88
Media Library /wp-admin/upload.php1,703 ▲55.53 ▲0.02137.70 ▲1.83179.49 ▼21.01
AdsMiddle /wp-admin/options-general.php?page=wp_addmidle1,0602.3852.8799.89

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adsmiddle/adsmiddle.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (screenshot-4.png)
  • Screenshots: These screenshots lack descriptions #3, #4 in adsmiddle/assets to your readme.txt
You can look at the official readme.txt

adsmiddle/adsmiddle.php Passed 13 tests

The entry point to "AdsMiddle" version 1.0 is a PHP file that has certain tags in its header comment area
53 characters long description:
Simple plugin para agregar adsense al medio del post.

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
Everything looks great! No dangerous files found in this plugin94 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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 functions3100.00%
▷ Anonymous functions00.00%
▷ 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
There were not PNG files found in your plugin