84% wp-avoid-update

Code Review | WP Avoid Update

WordPress plugin WP Avoid Update scored84%from 54 tests.

About plugin

  • Plugin page: wp-avoid-update
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Dec 12, 2016
  • Latest release: Dec 12, 2016
  • Number of updates: 3
  • Update frequency: every 10.0 days
  • Top authors: simplerthansimplest (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /492 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼0.52ms] Passed 4 tests

An overview of server-side resources used by WP Avoid Update
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0546.05 ▲6.53
Dashboard /wp-admin3.35 ▲0.0550.73 ▲0.43
Posts /wp-admin/edit.php3.46 ▲0.1147.64 ▼5.16
Add New Post /wp-admin/post-new.php5.93 ▲0.0586.54 ▼0.59
Media Library /wp-admin/upload.php3.27 ▲0.0537.58 ▲3.24
WP Avoid Update /wp-admin/plugins.php?page=wpau_admin_settings3.2530.06

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP Avoid Update
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.16 ▼0.201.74 ▲0.0744.19 ▲4.35
Dashboard /wp-admin2,202 ▲285.60 ▲0.0590.15 ▲0.8536.92 ▼1.10
Posts /wp-admin/edit.php2,101 ▼22.00 ▲0.0234.50 ▼9.9432.22 ▼4.86
Add New Post /wp-admin/post-new.php1,529 ▲323.64 ▲0.12679.16 ▲47.4256.17 ▼0.42
Media Library /wp-admin/upload.php1,407 ▲74.22 ▲0.03100.25 ▼7.5345.36 ▲1.73
WP Avoid Update /wp-admin/plugins.php?page=wpau_admin_settings9742.4246.8635.07

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
The SRP test was a success

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/plugins.php?page=wpau_admin_settings
    • > Network (severe)
    wp-content/plugins/wp-avoid-update//images/sort_both.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/plugins.php?page=wpau_admin_settings
    • > Network (severe)
    wp-content/plugins/wp-avoid-update//images/sort_asc.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: wp avoid update, remove update link, woocommerce, hide plugin update link, hide update link...

wp-avoid-update/wp-avoid-update.php 85% from 13 tests

The main PHP file in "WP Avoid Update" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 154 characters long)
  • Domain Path: The domain path folder does not exist ("/i18n/languages/")

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
No dangerous file extensions were detected471 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP560142251
JavaScript244188
CSS25032

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity7.00
▷ Minimum class complexity4.00
▷ Maximum class complexity9.00
Average method complexity1.90
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods20
▷ Static methods315.00%
▷ Public methods1575.00%
▷ Protected methods00.00%
▷ Private methods525.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin