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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 42.40 ▲20.08 |
Dashboard /wp-admin | 3.07 ▲0.01 | 56.93 ▲5.08 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 48.62 ▲3.35 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 95.09 ▼565.62 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 33.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲131 | 15.94 ▲0.24 | 10.23 ▼5.24 | 50.43 ▲3.08 |
Dashboard /wp-admin | 2,967 ▲36 | 5.93 ▼0.24 | 189.36 ▲44.97 | 124.22 ▲16.32 |
Posts /wp-admin/edit.php | 2,742 ▲3 | 2.70 ▼0.01 | 64.09 ▲0.42 | 85.33 ▼3.89 |
Add New Post /wp-admin/post-new.php | 1,683 ▲68 | 18.75 ▼2.71 | 388.34 ▲95.87 | 114.45 ▲8.72 |
Media Library /wp-admin/upload.php | 1,822 ▲15 | 5.04 ▼0.00 | 154.18 ▼0.24 | 115.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 118 | 216 | 282 |
Bourne Shell | 1 | 7 | 3 | 22 |
JavaScript | 1 | 9 | 7 | 16 |
XML | 1 | 0 | 0 | 14 |
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 code | 0.18 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 1.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 14 | 40.00% |
▷ Public methods | 33 | 94.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.71% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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