94% stealth-publish

Code Review | Stealth Publish

WordPress plugin Stealth Publish scored 94% from 54 tests.

About plugin

  • Plugin page: stealth-publish
  • Plugin version: 2.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.5
  • WordPress version: 5.8.1
  • First release: Sep 9, 2010
  • Latest release: Apr 14, 2016
  • Number of updates: 17
  • Update frequency: every 147.8 days
  • Top authors: coffee2code (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

1,000+ active / 27,439 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Stealth Publish
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1342.40 ▲20.08
Dashboard /wp-admin3.07 ▲0.0156.93 ▲5.08
Posts /wp-admin/edit.php3.16 ▲0.0548.62 ▲3.35
Add New Post /wp-admin/post-new.php5.43 ▼0.0095.09 ▼565.62
Media Library /wp-admin/upload.php3.01 ▲0.0133.07 ▼0.47

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Stealth Publish
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲13115.94 ▲0.2410.23 ▼5.2450.43 ▲3.08
Dashboard /wp-admin2,967 ▲365.93 ▼0.24189.36 ▲44.97124.22 ▲16.32
Posts /wp-admin/edit.php2,742 ▲32.70 ▼0.0164.09 ▲0.4285.33 ▼3.89
Add New Post /wp-admin/post-new.php1,683 ▲6818.75 ▼2.71388.34 ▲95.87114.45 ▲8.72
Media Library /wp-admin/upload.php1,822 ▲155.04 ▼0.00154.18 ▼0.24115.14 ▲0.63

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 | 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 | 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
Please fix the following items
  • 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-publish/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-publish/tests/bootstrap.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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
8 plugin tags: feed, post, publish, archive, coffee2code...

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

"Stealth Publish" version 2.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
127 characters long description:
Prevent specified posts from being featured on the front page or in feeds, and from notifying external services of publication.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected334 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP4118216282
Bourne Shell17322
JavaScript19716
XML10014

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity12.50
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity1.66
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods35
▷ Static methods1440.00%
▷ Public methods3394.29%
▷ Protected methods00.00%
▷ Private methods25.71%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin