Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.37MB] [CPU: ▼4.80ms] Passed 4 tests
A check of server-side resources used by LH Archived Post Status
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.35 | 42.28 ▲0.77 |
Dashboard /wp-admin | 3.75 ▲0.40 | 50.34 ▼15.03 |
Posts /wp-admin/edit.php | 3.80 ▲0.45 | 48.71 ▲5.38 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.36 | 84.65 ▼10.32 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 37.67 ▲6.53 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
LH Archived Post Status: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▲0.11 | 1.79 ▲0.09 | 44.57 ▲0.87 |
Dashboard /wp-admin | 2,195 ▲15 | 5.55 ▼0.12 | 83.04 ▼3.44 | 37.59 ▼2.87 |
Posts /wp-admin/edit.php | 2,155 ▲73 | 2.05 ▲0.07 | 37.11 ▲1.19 | 33.43 ▼2.58 |
Add New Post /wp-admin/post-new.php | 6,487 ▲4,959 | 28.38 ▲5.16 | 964.59 ▲346.81 | 53.29 ▲3.10 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.18 ▲0.01 | 97.45 ▼1.76 | 43.36 ▲1.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/lh-archived-post-status/partials/option-settings.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: workflow, pages, posts, admin, status
lh-archived-post-status/lh-archived-post-status.php 92% from 13 tests
Analyzing the main PHP file in "LH Archived Post Status" version 3.10
It is important to fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,886 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 859 | 825 | 1,652 |
PO File | 6 | 332 | 425 | 797 |
JavaScript | 10 | 105 | 44 | 377 |
Markdown | 1 | 25 | 0 | 56 |
JSON | 3 | 0 | 0 | 3 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 51.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 103.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 88 | |
▷ Static methods | 27 | 30.68% |
▷ Public methods | 83 | 94.32% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 5.68% |
Functions | 26 | |
▷ Named functions | 26 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin