89% disable-wp-plugin-updates-advance

Code Review | Disable WP Plugin Updates Advance

WordPress plugin Disable WP Plugin Updates Advance scored89%from 54 tests.

About plugin

  • Plugin page: disable-wp-plugin...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7.2
  • WordPress version: 6.3.1
  • First release: Jun 13, 2016
  • Latest release: Jul 9, 2021
  • Number of updates: 14
  • Update frequency: every 132.5 days
  • Top authors: gr8nilay (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,849 total downloads

Benchmarks

Plugin footprint 82% 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.04MB] [CPU: ▲339.58ms] 75% from 4 tests

This is a short check of server-side resources used by Disable WP Plugin Updates Advance
The following require your attention
  • Extra CPU: The extra CPU usage must be under 200.00ms (currently 339.58ms on /wp-admin/upload.php)
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.59 ▼0.76
Dashboard /wp-admin3.40 ▲0.10502.93 ▲456.61
Posts /wp-admin/edit.php3.45 ▲0.10497.74 ▲447.44
Add New Post /wp-admin/post-new.php5.92 ▲0.04548.15 ▲455.67
Media Library /wp-admin/upload.php3.26 ▲0.03488.97 ▲455.98

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
DWPUA_activated_on
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Disable WP Plugin Updates Advance
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.28 ▼1.141.67 ▲0.1043.08 ▲5.42
Dashboard /wp-admin2,209 ▲185.86 ▲0.9995.49 ▼18.9443.45 ▼2.94
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0032.58 ▼4.4435.43 ▲0.93
Add New Post /wp-admin/post-new.php1,514 ▼1417.70 ▼0.46632.82 ▼19.5350.29 ▼1.92
Media Library /wp-admin/upload.php1,388 ▼04.14 ▼0.0894.33 ▼5.5047.28 ▲3.35

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

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 97% 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:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === disable-wp-plugin-updates-advance === )
Please take inspiration from this readme.txt

disable-wp-plugin-updates-advance/disable-wp-plugin-updates-advance.php Passed 13 tests

This is the main PHP file of "Disable WP Plugin Updates Advance" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
53 characters long description:
This plugin disable your all WordPress plugin updates

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
Good job! No executable or dangerous file extensions detected24 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3113324

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions3
▷ Named functions3100.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
No PNG images were found in this plugin