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.01MB] [CPU: ▼6.10ms] Passed 4 tests
This is a short check of server-side resources used by TomS Pretty List
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.55 ▼6.71 |
Dashboard /wp-admin | 3.33 ▼0.02 | 53.63 ▼12.58 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.50 ▲2.39 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 91.91 ▼7.51 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 41.35 ▲8.14 |
Server storage [IO: ▲1.92MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by TomS Pretty List
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.45 ▲0.10 | 1.98 ▲0.19 | 41.14 ▲3.12 |
Dashboard /wp-admin | 2,221 ▲18 | 5.85 ▲0.04 | 109.45 ▲5.40 | 37.07 ▼9.80 |
Posts /wp-admin/edit.php | 2,079 ▼21 | 2.02 ▼0.03 | 39.15 ▼6.31 | 31.07 ▼6.03 |
Add New Post /wp-admin/post-new.php | 6,364 ▲4,819 | 28.48 ▲5.12 | 969.38 ▲368.98 | 57.76 ▼3.35 |
Media Library /wp-admin/upload.php | 1,403 ▲12 | 4.30 ▲0.09 | 96.72 ▼5.95 | 47.38 ▼2.71 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (add TomS Pretty List block from inserter), #2 (TomS Pretty List block), #3 (TomS Pretty List display effect after published), #4 (TomS Pretty List Settings options), #5 (add TomS Pretty List block to widget)
toms-pretty-list/toms-pretty-list.php 92% from 13 tests
The principal PHP file in "TomS Pretty List" v. 1.0.2 is loaded by WordPress automatically on each request
You should first fix the following items:
- Requires PHP: The required version number did not match the one declared in readme.txt ("7.4" instead of "7.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin14,359 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 2,665 | 3,476 | 13,789 |
CSS | 2 | 11 | 13 | 200 |
JSON | 2 | 0 | 0 | 174 |
PO File | 1 | 46 | 79 | 126 |
PHP | 3 | 19 | 18 | 70 |
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.40 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/default.png | 53.87KB | 18.61KB | ▼ 65.46% |