84% disable-updates-by-cv

Code Review | Disable Updates by CV

WordPress plugin Disable Updates by CV scored84%from 54 tests.

About plugin

  • Plugin page: disable-updates-b...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3.1
  • WordPress version: 6.3.1
  • First release: Jun 29, 2022
  • Latest release: Sep 16, 2023
  • Number of updates: 3
  • Update frequency: every 148.0 days
  • Top authors: thechetanvaghela (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /167 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.11MB] [CPU: ▼7.92ms] Passed 4 tests

An overview of server-side resources used by Disable Updates by CV
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1235.85 ▼5.94
Dashboard /wp-admin3.42 ▲0.0746.10 ▼17.27
Posts /wp-admin/edit.php3.54 ▲0.1847.75 ▲0.45
Add New Post /wp-admin/post-new.php6.02 ▲0.1391.65 ▼8.90
Media Library /wp-admin/upload.php3.34 ▲0.1135.41 ▲2.08

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Disable Updates by CV
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,903 ▲13214.03 ▼0.354.90 ▲2.8039.08 ▼4.11
Dashboard /wp-admin2,223 ▲384.88 ▼0.97112.27 ▲4.6837.81 ▼3.33
Posts /wp-admin/edit.php2,112 ▲232.05 ▲0.0340.67 ▲2.9535.75 ▼0.14
Add New Post /wp-admin/post-new.php1,540 ▲1218.49 ▲0.18608.80 ▼27.6060.88 ▲11.18
Media Library /wp-admin/upload.php1,411 ▲204.20 ▼0.0497.47 ▼6.3643.51 ▲0.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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/disable-updates-by-cv/public/partials/disable-updates-for-wordpress-public-display.php
    • > /wp-content/plugins/disable-updates-by-cv/admin/partials/disable-updates-for-wordpress-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: disable update, auto update, themes, plugins

disable-updates-by-cv/disable-updates-for-wordpress.php 85% from 13 tests

The main file in "Disable Updates by CV" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("disable-updates-by-cv.php" instead of "disable-updates-for-wordpress.php")

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 plugin737 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12135563488
CSS23011157
JavaScript2123092

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity11.14
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity3.29
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods31
▷ Static methods26.45%
▷ Public methods2683.87%
▷ Protected methods00.00%
▷ Private methods516.13%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected