Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.43ms] Passed 4 tests
An overview of server-side resources used by Post Useful
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.81 ▼7.15 |
Dashboard /wp-admin | 3.32 ▲0.01 | 45.62 ▼4.49 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.56 ▲2.64 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 87.39 ▼0.96 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.39 ▼1.10 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 16 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_post_useful |
New WordPress options |
---|
widget_theysaidso_widget |
post_useful_db_version |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Post Useful
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,886 ▲115 | 13.55 ▼0.88 | 8.25 ▲6.17 | 40.21 ▼3.83 |
Dashboard /wp-admin | 2,206 ▲18 | 4.88 ▼0.02 | 97.25 ▼19.43 | 39.20 ▼7.02 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.09 | 36.69 ▲0.86 | 34.10 ▲0.45 |
Add New Post /wp-admin/post-new.php | 6,444 ▲4,907 | 20.76 ▼2.45 | 914.76 ▲237.24 | 56.09 ▲3.75 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.18 ▼0.02 | 93.64 ▼15.16 | 46.21 ▼0.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_post_useful
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- post_useful_db_version
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
No output text or server-side errors detected on direct access of PHP files
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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Box for the user to sort the content.), #2 (Once the user sorts the post.), #3 (Box displaying the post classifications on the edit page.)
post-useful/post-useful.php 92% from 13 tests
"Post Useful" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Text Domain: The text domain should only use lowercase characters and dashes
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
There were no executable files found in this plugin320 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 56 | 119 | 167 |
CSS | 1 | 4 | 1 | 58 |
Markdown | 1 | 21 | 0 | 44 |
PO File | 1 | 5 | 5 | 29 |
JavaScript | 1 | 1 | 1 | 22 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 14 | |
▷ Static methods | 4 | 28.57% |
▷ Public methods | 13 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.14% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.30MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/yes_hover.png | 16.03KB | 1.27KB | ▼ 92.05% |
assets/images/no.png | 0.74KB | 0.70KB | ▼ 5.05% |
screenshot-1.png | 124.98KB | 44.06KB | ▼ 64.75% |
assets/images/no_hover.png | 16.05KB | 1.28KB | ▼ 92.05% |
screenshot-3.png | 4.84KB | 2.54KB | ▼ 47.62% |