84% silent-update

Code Review | Silent Update

WordPress plugin Silent Update scored84%from 54 tests.

About plugin

  • Plugin page: silent-update
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Jun 18, 2015
  • Latest release: Jun 18, 2015
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: tomasz.dobrzynski (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active /1,296 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.41ms] Passed 4 tests

Server-side resources used by Silent Update
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.16 ▲2.97
Dashboard /wp-admin3.31 ▲0.0148.96 ▼3.29
Posts /wp-admin/edit.php3.36 ▲0.0049.38 ▼3.02
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.73 ▲5.74
Media Library /wp-admin/upload.php3.23 ▲0.0036.56 ▼2.29

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Silent Update
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.25 ▼0.716.22 ▲4.1343.81 ▼1.43
Dashboard /wp-admin2,203 ▲155.92 ▲1.02104.65 ▲0.6937.31 ▼1.22
Posts /wp-admin/edit.php2,089 ▼02.05 ▼0.0240.56 ▲1.5736.71 ▲3.24
Add New Post /wp-admin/post-new.php6,237 ▲4,70126.13 ▲2.76857.81 ▲189.3060.29 ▲8.01
Media Library /wp-admin/upload.php1,391 ▲94.33 ▲0.08106.02 ▲6.0146.63 ▼0.97

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please 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 is_admin() in wp-content/plugins/silent-update/silent-update.php:28

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 Passed 29 tests

readme.txt Passed 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
10 plugin tags: hide changes, silent, update, panel, admin...

silent-update/silent-update.php Passed 13 tests

The main PHP file in "Silent Update" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
70 characters long description:
Control whether you want to update modification date when update post.

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
Everything looks great! No dangerous files found in this plugin42 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1123142

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin