72% ir-manager

Code Review | Increase Rev Ad Manager

WordPress plugin Increase Rev Ad Manager scored72%from 54 tests.

About plugin

  • Plugin page: ir-manager
  • Plugin version: 1.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.9.2
  • WordPress version: 6.3.1
  • First release: Aug 16, 2019
  • Latest release: May 17, 2022
  • Number of updates: 35
  • Update frequency: every 29.3 days
  • Top authors: increaserev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,842 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.11MB] [CPU: ▼11.73ms] 75% from 4 tests

Server-side resources used by Increase Rev Ad Manager
Please fix the following
  • CPU: Try to keep total CPU usage under 500.00ms (currently 814.20ms on /wp-admin/admin.php?page=ir-manager/irmngr_option.php)
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1425.53 ▼11.03
Dashboard /wp-admin3.65 ▲0.3050.24 ▼10.23
Posts /wp-admin/edit.php3.77 ▲0.4246.22 ▲0.95
Add New Post /wp-admin/post-new.php5.52 ▼0.3664.56 ▼26.59
Media Library /wp-admin/upload.php3.58 ▲0.3544.01 ▲11.73
Violations /wp-admin/admin.php?page=ir-manager/irmngr_option2.php3.61961.22
Setting /wp-admin/admin.php?page=ir-manager/irmngr_option.php3.68814.20

Server storage [IO: ▲0.92MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Increase Rev Ad Manager
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,063 ▲30223.54 ▲9.241.88 ▲0.1744.18 ▼1.78
Dashboard /wp-admin2,233 ▲5612.61 ▲6.99359.59 ▲275.1469.05 ▲30.36
Posts /wp-admin/edit.php2,377 ▲27714.20 ▲12.26145.32 ▲108.4738.13 ▼0.68
Add New Post /wp-admin/post-new.php6,482 ▲4,94526.96 ▲8.65865.85 ▲261.6340.37 ▼26.49
Media Library /wp-admin/upload.php1,267 ▼12712.67 ▲8.54197.47 ▲95.1641.87 ▼0.64
Violations /wp-admin/admin.php?page=ir-manager/irmngr_option2.php1,20014.61165.9943.19
Setting /wp-admin/admin.php?page=ir-manager/irmngr_option.php1,20111.73157.4841.14

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 5× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/ir-manager/irmngr_option_fun.php
    • > /wp-content/plugins/ir-manager/ir_amp.php
    • > /wp-content/plugins/ir-manager/ir_footer.php
    • > /wp-content/plugins/ir-manager/ir_block_div.php
    • > /wp-content/plugins/ir-manager/irmngr_option2_fun.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ir-manager/IRManager.php:29

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ir-manager/irmngr_option.php
    • > Console-api (warning) in wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=wp-polyfill-inert,regenerator-runtime,wp-polyfill,react,wp-hooks,wp-deprecated,wp-dom,react-dom,wp-escape-html,wp-element,wp-is-&load%5Bchunk_1%5D=shallow-equal&ver=6.3.1+16:627
    wp.compose.withState is deprecated since version 5.8. Please use wp.element.useState instead.

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Contributors: The plugin contributors field is not present
The official readme.txt might help

ir-manager/IRManager.php 85% from 13 tests

"Increase Rev Ad Manager" version 1.0.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ir-manager.php" instead of "IRManager.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 178 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin15,001 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript417882710,823
PHP1254542,891
CSS425131,273
INI11414

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity118.00
▷ Minimum class complexity6.00
▷ Maximum class complexity230.00
Average method complexity4.35
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods71
▷ Static methods11.41%
▷ Public methods71100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
lib/img/icon.png3.23KB0.73KB▼ 77.44%