94% stealth-update

Code Review | Stealth Update

WordPress plugin Stealth Update scored 94% from 54 tests.

About plugin

  • Plugin page: stealth-update
  • Plugin version: 2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.5
  • WordPress version: 5.8.1
  • First release: Sep 8, 2010
  • Latest release: Apr 14, 2016
  • Number of updates: 16
  • Update frequency: every 157.1 days
  • Top authors: coffee2code (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active / 5,595 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼140.51ms] Passed 4 tests

An overview of server-side resources used by Stealth Update
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0341.12 ▲3.17
Dashboard /wp-admin3.08 ▲0.0350.50 ▼5.35
Posts /wp-admin/edit.php3.17 ▲0.0555.20 ▼7.57
Add New Post /wp-admin/post-new.php5.44 ▲0.01113.91 ▼548.76
Media Library /wp-admin/upload.php3.03 ▲0.0337.75 ▼0.37

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Stealth Update
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲6615.90 ▼0.138.69 ▼2.1144.87 ▼8.64
Dashboard /wp-admin2,967 ▲335.91 ▼0.02167.59 ▲0.91118.67 ▼0.16
Posts /wp-admin/edit.php2,742 ▲32.73 ▲0.0179.59 ▲1.7991.42 ▼7.14
Add New Post /wp-admin/post-new.php1,683 ▼015.70 ▼3.02521.18 ▲118.92123.36 ▲4.30
Media Library /wp-admin/upload.php1,807 ▼05.00 ▼0.04163.48 ▼24.13131.95 ▲7.48

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      require_once(): Failed opening required '/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/stealth-update/tests/bootstrap.php on line 3
    • > PHP Warning
      require_once(/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/stealth-update/tests/bootstrap.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: latest, coffee2code, update, edit, publish...

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

The main PHP script in "Stealth Update" version 2.5 is automatically included on every request by WordPress
115 characters long description:
Adds the ability to update a post without having WordPress automatically update the post's post_modified timestamp.

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 detected200 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP472145148
Bourne Shell17322
JavaScript19716
XML10014

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity10.00
▷ Minimum class complexity2.00
▷ Maximum class complexity18.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods942.86%
▷ Public methods1990.48%
▷ Protected methods00.00%
▷ Private methods29.52%
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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin