Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼2.70ms] Passed 4 tests
An overview of server-side resources used by Post Length Indicator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 40.69 ▲1.90 |
Dashboard /wp-admin | 3.38 ▲0.07 | 44.65 ▼2.86 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 44.78 ▼1.55 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 91.74 ▼8.29 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.69 ▲5.82 |
Post Length Indicator /wp-admin/options-general.php?page=pli_settings | 3.27 | 32.26 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Post Length Indicator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.17 ▼0.37 | 1.71 ▼0.07 | 45.74 ▲4.74 |
Dashboard /wp-admin | 2,199 ▲22 | 5.64 ▲0.03 | 90.93 ▲8.02 | 41.97 ▲0.31 |
Posts /wp-admin/edit.php | 2,107 ▲25 | 1.94 ▼0.09 | 40.60 ▲3.96 | 33.97 ▼0.00 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 18.51 ▼4.90 | 586.31 ▼52.13 | 89.89 ▲31.49 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.18 ▲0.02 | 95.29 ▲0.25 | 42.79 ▼0.69 |
Post Length Indicator /wp-admin/options-general.php?page=pli_settings | 864 | 2.25 | 35.14 | 30.52 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
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 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
4 plugin tags: readbility, post, length, comments
post-length-indicator/post-length-indicator.php Passed 13 tests
The main file in "Post Length Indicator" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
139 characters long description:
Displays a dual-coloured bar alongside the scrollbar to indicate how much of the page contains the post and how much contains the comments.
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 plugin340 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 74 | 72 | 218 |
PO File | 1 | 14 | 26 | 47 |
JavaScript | 2 | 10 | 0 | 45 |
CSS | 1 | 0 | 0 | 30 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 86.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 13.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin