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.12MB] [CPU: ▼140.02ms] Passed 4 tests
A check of server-side resources used by Depublish Posts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 37.86 ▲12.66 |
Dashboard /wp-admin | 3.17 ▲0.12 | 50.52 ▲11.10 |
Posts /wp-admin/edit.php | 3.28 ▲0.18 | 44.65 ▼7.47 |
Add New Post /wp-admin/post-new.php | 5.53 ▲0.10 | 95.35 ▼556.53 |
Media Library /wp-admin/upload.php | 3.11 ▲0.10 | 32.53 ▼7.18 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Depublish Posts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 16.21 ▲0.66 | 6.83 ▼2.73 | 45.68 ▼2.85 |
Dashboard /wp-admin | 2,967 ▲33 | 5.93 ▼0.00 | 135.94 ▼30.67 | 111.94 ▼9.18 |
Posts /wp-admin/edit.php | 2,763 ▲24 | 2.69 ▼0.01 | 66.00 ▼5.85 | 92.25 ▲0.49 |
Add New Post /wp-admin/post-new.php | 1,511 ▼161 | 18.02 ▼1.11 | 353.46 ▼18.52 | 108.10 ▼0.63 |
Media Library /wp-admin/upload.php | 1,810 ▼0 | 5.03 ▼0.00 | 144.06 ▼9.00 | 119.06 ▼5.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please a description for screenshot #2 in depublish-posts/assets to your readme.txt
- Plugin Name: You should set the name of your plugin on the first line (
=== depublish-posts ===
)
depublish-posts/wp-depublish-posts.php 85% from 13 tests
The principal PHP file in "Depublish Posts" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("depublish-posts.php" instead of "wp-depublish-posts.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected585 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 134 | 175 | 384 |
PO File | 3 | 24 | 30 | 93 |
JavaScript | 1 | 19 | 10 | 72 |
CSS | 1 | 7 | 0 | 36 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 11.83 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 3.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 21 | 95.45% |
▷ Public methods | 21 | 95.45% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.55% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin