84% disable-automatic-theme-plugin-updates

Code Review | Disable Automatic Theme & Plugin Updates

WordPress plugin Disable Automatic Theme & Plugin Updates scored84%from 54 tests.

About plugin

  • Plugin page: disable-automatic...
  • Plugin version: 0.1.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.5
  • WordPress version: 6.3.1
  • First release: Jun 2, 2020
  • Latest release: Aug 7, 2020
  • Number of updates: 6
  • Update frequency: every 11.0 days
  • Top authors: whyisjake (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,239 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.01MB] [CPU: ▼3.26ms] Passed 4 tests

Analyzing server-side resources used by Disable Automatic Theme & Plugin Updates
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.30 ▲2.90
Dashboard /wp-admin3.31 ▼0.0445.41 ▼13.35
Posts /wp-admin/edit.php3.36 ▲0.0052.77 ▲0.66
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.38 ▼2.70
Media Library /wp-admin/upload.php3.23 ▲0.0032.71 ▲2.37

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Disable Automatic Theme & Plugin Updates
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.35 ▼0.012.43 ▲0.8938.88 ▼1.06
Dashboard /wp-admin2,198 ▲235.65 ▼0.0187.33 ▼13.5742.35 ▼0.97
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0039.84 ▲3.0436.58 ▲1.47
Add New Post /wp-admin/post-new.php1,534 ▲618.22 ▼4.91594.04 ▼83.1572.38 ▲15.96
Media Library /wp-admin/upload.php1,400 ▼04.22 ▲0.0596.74 ▼6.0741.68 ▼1.15

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% 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 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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/disable-automatic-theme-plugin-updates/disable-plugin-theme-auto-updates.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: core, updates

disable-automatic-theme-plugin-updates/disable-plugin-theme-auto-updates.php 85% from 13 tests

The entry point to "Disable Automatic Theme & Plugin Updates" version 0.1.6 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("disable-automatic-theme-plugin-updates.php" instead of "disable-plugin-theme-auto-updates.php")

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
Everything looks great! No dangerous files found in this plugin27 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
YAML10024
PHP11123

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin