79% ach-updates-manager

Code Review | ACh Updates and Notices Manager

WordPress plugin ACh Updates and Notices Manager scored79%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-6.1
  • WordPress version: 6.3.1
  • First release: Jun 9, 2020
  • Latest release: Nov 3, 2022
  • Number of updates: 16
  • Update frequency: every 54.8 days
  • Top authors: ach1992 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /665 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

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

This is a short check of 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.48 ▲0.0248.31 ▲7.56
Dashboard /wp-admin3.32 ▼0.0350.06 ▼11.17
Posts /wp-admin/edit.php3.37 ▲0.0154.16 ▲1.09
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.63 ▼10.28
Media Library /wp-admin/upload.php3.24 ▲0.0137.86 ▲4.24
Updates Manager /wp-admin/options-general.php?page=ach-upn-manager3.2133.46

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACh Updates and Notices Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6514.36 ▲0.101.68 ▼0.7644.15 ▼0.00
Dashboard /wp-admin2,202 ▲255.60 ▼0.0184.93 ▼2.8942.38 ▼0.31
Posts /wp-admin/edit.php2,104 ▲41.97 ▼0.0134.55 ▼8.4741.62 ▲2.15
Add New Post /wp-admin/post-new.php1,529 ▲322.98 ▼0.06647.92 ▼14.7850.54 ▼13.94
Media Library /wp-admin/upload.php1,407 ▲74.26 ▲0.0796.16 ▼11.4943.75 ▼0.17
Updates Manager /wp-admin/options-general.php?page=ach-upn-manager1,2242.2233.4984.58

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'achupnm_plugin_run_on_deactivation' not found or invalid function name
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected 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 issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: update, disable updates, disable notices, notices, plugin updates

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

"ACh Updates and Notices Manager" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • 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")
  • Description: The description should be shorter than 140 characters (currently 275 characters long)
  • Text Domain: Please use dashes and lowercase characters for text domains

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
Good job! No executable or dangerous file extensions detected1,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
Everything seems fine, there were no complexity issues found
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin