89% ach-updates-manager

Code Review | ACh Updates and Notices Manager

WordPress plugin ACh Updates and Notices Manager scored 89% from 54 tests.

About plugin

  • Plugin page: ach-updates-manager
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9
  • WordPress version: 5.9.2
  • First release: Jun 9, 2020
  • Latest release: Jan 27, 2022
  • Number of updates: 15
  • Update frequency: every 39.8 days
  • Top authors: ach1992 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 401 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by ACh Updates and Notices Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0656.18 ▲5.95
Dashboard /wp-admin3.48 ▲0.0735.31 ▲1.61
Posts /wp-admin/edit.php3.70 ▲0.0641.57 ▲5.71
Add New Post /wp-admin/post-new.php6.94 ▼0.0393.32 ▼1,170.55
Media Library /wp-admin/upload.php3.35 ▲0.0624.05 ▼1.99
Updates Manager /wp-admin/options-general.php?page=ach-upn-manager3.3324.53

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by ACh Updates and Notices Manager
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,810 ▲6815.82 ▲0.256.48 ▼0.032.55 ▲0.56
Dashboard /wp-admin2,879 ▲186.07 ▼0.08116.29 ▼22.06157.92 ▼4.10
Posts /wp-admin/edit.php2,696 ▲53.24 ▲0.0169.73 ▲3.77141.49 ▼2.70
Add New Post /wp-admin/post-new.php1,671 ▲1019.31 ▲2.32393.12 ▼24.41153.80 ▼0.65
Media Library /wp-admin/upload.php1,706 ▲85.51 ▼0.02136.15 ▼18.93183.39 ▼5.22
Updates Manager /wp-admin/options-general.php?page=ach-upn-manager1,6092.9562.23254.23

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-includes/class-wp-hook.php+307
    call_user_func_array() expects parameter 1 to be a valid callback, function 'achupnm_plugin_run_on_deactivation' not found or invalid function name

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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

readme.txt Passed 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
5 plugin tags: disable updates, notices, update, plugin updates, disable notices

ach-updates-manager/ACh-Updates-Manager.php 77% from 13 tests

The main file in "ACh Updates and Notices Manager" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 275 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("ach-updates-manager.php" instead of "ACh-Updates-Manager.php")
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,884 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS210820764
PHP717768679
JavaScript148272
PO File16778143
SVG10126

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity21.00
▷ Minimum class complexity7.00
▷ Maximum class complexity29.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods15
▷ Static methods426.67%
▷ Public methods1066.67%
▷ Protected methods00.00%
▷ Private methods533.33%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin