Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.16MB] [CPU: ▼17.28ms] Passed 4 tests
An overview of server-side resources used by wpslimclamp
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 42.35 ▲0.36 |
Dashboard /wp-admin | 3.18 ▼0.12 | 28.65 ▼24.54 |
Posts /wp-admin/edit.php | 3.26 ▼0.10 | 33.06 ▼15.38 |
Add New Post /wp-admin/post-new.php | 5.50 ▼0.39 | 72.56 ▼19.13 |
Media Library /wp-admin/upload.php | 3.21 ▼0.02 | 27.42 ▼10.07 |
WPSlimClamp /wp-admin/options-general.php?page=wpslimclamp | 3.26 | 34.68 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for wpslimclamp
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,881 ▲120 | 13.43 ▼0.92 | 8.83 ▲7.17 | 42.09 ▼11.78 |
Dashboard /wp-admin | 2,196 ▲19 | 5.63 ▼0.05 | 91.99 ▼3.58 | 42.99 ▲1.43 |
Posts /wp-admin/edit.php | 2,107 ▲10 | 2.00 ▼0.01 | 39.20 ▲2.43 | 37.15 ▲2.19 |
Add New Post /wp-admin/post-new.php | 1,529 ▼2 | 23.69 ▲0.54 | 617.47 ▼47.35 | 65.13 ▲10.80 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.27 ▲0.07 | 101.41 ▲2.39 | 40.86 ▼1.05 |
WPSlimClamp /wp-admin/options-general.php?page=wpslimclamp | 889 | 2.06 | 27.34 | 26.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wpslimclamp/public/partials/wpslimclamp-public-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wpslimclamp/admin/partials/wpslimclamp-admin-display.php:18
- > PHP Fatal error
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 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (Admin settings page screenshot), #2 (Long title with anchor clamp example), #3 (Content clamp example)
wpslimclamp/wpslimclamp.php Passed 13 tests
"wpslimclamp" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
76 characters long description:
Clamp text to fit containers, easy way to limit text to specific row number.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin422 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 132 | 511 | 232 |
JavaScript | 4 | 66 | 95 | 186 |
CSS | 2 | 1 | 8 | 4 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 1.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 4 | |
▷ Named functions | 4 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 23.25KB | 9.78KB | ▼ 57.95% |
assets/screenshot-2.png | 24.53KB | 9.93KB | ▼ 59.53% |
assets/screenshot-1.png | 39.41KB | 15.16KB | ▼ 61.54% |