10% disable-plugin-update

Code Review | Disable Plugin Update

WordPress plugin Disable Plugin Update scored10%from 54 tests.

About plugin

  • Plugin page: disable-plugin-up...
  • Plugin version: 0.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.8.1
  • WordPress version: 6.3.1
  • First release: Oct 14, 2021
  • Latest release: Oct 14, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: dineshkashera (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /278 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/disable-plugin-update/disable-plugin-update.php+17
    Function create_function() is deprecated

Server metrics [RAM: ▼1.95MB] [CPU: ▼59.37ms] Passed 4 tests

An overview of server-side resources used by Disable Plugin Update
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.424.90 ▼37.84
Dashboard /wp-admin2.07 ▼1.286.84 ▼60.06
Posts /wp-admin/edit.php2.07 ▼1.295.62 ▼44.79
Add New Post /wp-admin/post-new.php2.07 ▼3.825.26 ▼94.77
Media Library /wp-admin/upload.php2.07 ▼1.165.73 ▼28.88

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Disable Plugin Update
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.34 ▼0.021.70 ▼0.1044.91 ▼0.02
Dashboard /wp-admin2,189 ▲175.63 ▼0.0483.98 ▼19.4944.76 ▼0.77
Posts /wp-admin/edit.php2,079 ▼212.00 ▲0.0136.08 ▼0.6735.66 ▼0.51
Add New Post /wp-admin/post-new.php1,526 ▼223.67 ▲0.58681.34 ▼14.9551.31 ▼6.78
Media Library /wp-admin/upload.php1,400 ▼04.14 ▼0.12108.15 ▲3.2646.03 ▼1.99

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/disable-plugin-update/disable-plugin-update.php+17
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • 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 everything seems fine, this is not 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/disable-plugin-update/disable-plugin-update.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (banner.png) image not found
The official readme.txt might help

disable-plugin-update/disable-plugin-update.php 85% from 13 tests

This is the main PHP file of "Disable Plugin Update" version 0.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.3" instead of "5.6")
  • Requires PHP: The required version number must match the one declared in readme.txt ("5.6" instead of "7.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin3 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12123

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin