83% xoo-disable-update-notifications

Code Review | Xoo Disable Updates

WordPress plugin Xoo Disable Updates scored83%from 54 tests.

About plugin

  • Plugin page: xoo-disable-updat...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Jan 14, 2018
  • Latest release: Jan 14, 2018
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: xoocode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /529 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.86ms] Passed 4 tests

This is a short check of server-side resources used by Xoo Disable Updates
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.08 ▲0.89
Dashboard /wp-admin3.35 ▲0.0552.43 ▼1.89
Posts /wp-admin/edit.php3.40 ▲0.0550.54 ▼1.16
Add New Post /wp-admin/post-new.php5.93 ▲0.0598.11 ▼5.28
Media Library /wp-admin/upload.php3.27 ▲0.0537.13 ▲1.43
Xoo Disable Updates /wp-admin/admin.php?page=xoo_disable_updates3.2237.02

Server storage [IO: ▲0.05MB] [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: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Xoo Disable Updates: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.21 ▼1.351.64 ▼0.1441.90 ▲2.60
Dashboard /wp-admin2,227 ▲395.85 ▲0.90100.11 ▼3.7670.17 ▲25.89
Posts /wp-admin/edit.php2,113 ▲241.99 ▼0.0237.59 ▼4.3733.60 ▼4.24
Add New Post /wp-admin/post-new.php1,539 ▲618.17 ▼5.15703.72 ▲9.0562.05 ▼4.74
Media Library /wp-admin/upload.php1,400 ▲124.23 ▲0.0397.31 ▼11.1074.52 ▲27.66
Xoo Disable Updates /wp-admin/admin.php?page=xoo_disable_updates9381.6924.2231.80

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=xoo_disable_updates
    • > Warning in wp-content/plugins/xoo-disable-update-notifications/xoo-disable-updates.php+46
    Invalid argument supplied for foreach()

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (Disable update reminders.), #2 (Update reminders are now removed.)
Please take inspiration from this readme.txt

xoo-disable-update-notifications/xoo-disable-updates.php 85% from 13 tests

"Xoo Disable Updates" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("xoo-disable-update-notifications.php" instead of "xoo-disable-updates.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected425 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP22548211
CSS1123164
JavaScript11050

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.57
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
static/img/xoocode.favicon.menu.png0.43KB0.33KB▼ 21.87%