Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.47ms] Passed 4 tests
Analyzing server-side resources used by Pending Status
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 34.71 ▼10.21 |
Dashboard /wp-admin | 3.36 ▲0.05 | 45.70 ▼4.88 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 46.84 ▼0.43 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 81.00 ▼10.36 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.43 ▲1.46 |
Pending Status /wp-admin/options-general.php?page=pending-status | 3.26 | 34.27 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
r34ps_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Pending Status
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,867 ▲132 | 13.24 ▼1.44 | 1.92 ▼0.58 | 38.92 ▼5.23 |
Dashboard /wp-admin | 2,248 ▲60 | 5.88 ▲0.86 | 110.00 ▲1.82 | 41.85 ▲1.71 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.01 ▼0.01 | 42.43 ▲1.84 | 35.37 ▼0.21 |
Add New Post /wp-admin/post-new.php | 1,533 ▼1 | 23.32 ▲0.24 | 632.08 ▼43.24 | 52.58 ▼6.64 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.22 ▼0.05 | 92.83 ▼12.33 | 39.70 ▼3.20 |
Pending Status /wp-admin/options-general.php?page=pending-status | 955 | 2.01 | 27.23 | 35.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- r34ps_version
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: post status, workflow, notifications, pending review, pending
pending-status/pending-status.php Passed 13 tests
The main PHP script in "Pending Status" version 1.0.1 is automatically included on every request by WordPress
53 characters long description:
Get notified when your site has posts pending review.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin323 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 90 | 56 | 222 |
CSS | 1 | 20 | 0 | 100 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 2 | 33.33% |
▷ Anonymous functions | 4 | 66.67% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.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