84% adsmiddle

Code Review | AdsMiddle

WordPress plugin AdsMiddle scored84%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: 6.3.1
  • 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,899 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▲2.18ms] Passed 4 tests

A check of server-side resources used by AdsMiddle
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0250.57 ▲4.97
Dashboard /wp-admin3.33 ▲0.0250.19 ▼0.91
Posts /wp-admin/edit.php3.38 ▲0.0257.58 ▲5.99
Add New Post /wp-admin/post-new.php5.91 ▲0.02106.03 ▲8.96
Media Library /wp-admin/upload.php3.25 ▲0.0238.97 ▼1.34
AdsMiddle /wp-admin/options-general.php?page=wp_addmidle3.2231.55

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for AdsMiddle
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.38 ▼0.112.14 ▼0.2440.18 ▼5.38
Dashboard /wp-admin2,202 ▲255.61 ▲0.1099.33 ▼1.6439.62 ▲0.32
Posts /wp-admin/edit.php2,107 ▲42.01 ▼0.0036.75 ▼1.8634.80 ▼1.42
Add New Post /wp-admin/post-new.php1,531 ▲523.33 ▲0.29658.71 ▲17.0449.83 ▼19.60
Media Library /wp-admin/upload.php1,401 ▲14.07 ▼0.1998.78 ▼5.4147.48 ▼5.98
AdsMiddle /wp-admin/options-general.php?page=wp_addmidle8481.9726.4629.38

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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/adsmiddle/adsmiddle.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
Please fix the following attributes:
  • Screenshots: Screenshot #1 (screenshot-4.png) image not found
  • Screenshots: No descriptions were found for these screenshots #3, #4 in adsmiddle/assets to your readme.txt
You can look at the official readme.txt

adsmiddle/adsmiddle.php Passed 13 tests

"AdsMiddle" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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 file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin94 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1181194

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were 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
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin