89% showhide-updates-exclusive

Code Review | Show/Hide Updates Exclusive

WordPress plugin Show/Hide Updates Exclusive scored89%from 54 tests.

About plugin

  • Plugin page: showhide-updates-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-5.0
  • WordPress version: 6.3.1
  • First release: Dec 12, 2018
  • Latest release: Dec 27, 2018
  • Number of updates: 4
  • Update frequency: every 3.8 days
  • Top authors: pressmaninc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /468 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▲30.76ms] Passed 4 tests

Server-side resources used by Show/Hide Updates Exclusive
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1774.80 ▲35.99
Dashboard /wp-admin3.44 ▲0.1086.53 ▲25.49
Posts /wp-admin/edit.php3.49 ▲0.1392.09 ▲40.29
Add New Post /wp-admin/post-new.php5.96 ▲0.08130.92 ▲26.72
Media Library /wp-admin/upload.php3.30 ▲0.0772.94 ▲34.83

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

Browser metrics Passed 4 tests

Checking browser requirements for Show/Hide Updates Exclusive
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,749 ▼1214.33 ▲0.141.65 ▼0.0337.54 ▼2.18
Dashboard /wp-admin2,169 ▼85.57 ▼0.0095.49 ▲10.6041.17 ▼0.32
Posts /wp-admin/edit.php2,078 ▼222.02 ▲0.0240.09 ▼1.5034.11 ▼6.33
Add New Post /wp-admin/post-new.php1,507 ▼1922.00 ▼1.10658.34 ▼15.5860.22 ▼4.05
Media Library /wp-admin/upload.php1,374 ▼264.24 ▲0.0398.87 ▼21.0842.31 ▼7.62

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

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
There were not plugin tags detected

showhide-updates-exclusive/show-hide-updates-exclusive.php 85% from 13 tests

"Show/Hide Updates Exclusive" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("showhide-updates-exclusive.php" instead of "show-hide-updates-exclusive.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 172 characters long)

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
There were no executable files found in this plugin134 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13783134

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin