Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼0.98ms] Passed 4 tests
A check of server-side resources used by Sweet Glossary
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 41.36 ▼3.84 |
Dashboard /wp-admin | 3.40 ▲0.09 | 49.28 ▲0.96 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 49.90 ▼0.86 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 88.52 ▼0.17 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.62 ▲1.67 |
Glossary /wp-admin/edit.php?post_type=glossary | 3.37 | 39.86 |
Server storage [IO: ▲0.56MB] [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: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Sweet Glossary
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,897 ▲151 | 13.55 ▼0.67 | 5.09 ▲3.19 | 39.68 ▼5.73 |
Dashboard /wp-admin | 2,220 ▲29 | 4.87 ▼0.03 | 102.25 ▼5.71 | 40.00 ▼4.30 |
Posts /wp-admin/edit.php | 2,100 ▲8 | 2.02 ▲0.01 | 37.42 ▼3.69 | 29.91 ▼8.20 |
Add New Post /wp-admin/post-new.php | 1,528 ▼5 | 23.41 ▲0.21 | 646.19 ▼43.45 | 62.85 ▲9.22 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.20 ▲0.09 | 110.27 ▲4.75 | 47.07 ▲1.60 |
Glossary /wp-admin/edit.php?post_type=glossary | 1,106 | 1.94 | 30.21 | 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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- 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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/sweet-glossary/admin/partials/sweet-glossary-admin-display.php
- > /wp-content/plugins/sweet-glossary/public/partials/sweet-glossary-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Contributors: Contributors not specified
sweet-glossary/sweet-glossary.php Passed 13 tests
The main PHP file in "Sweet Glossary" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
53 characters long description:
A simple, beautiful and SEO friendly glossary plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin433 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 143 | 568 | 318 |
CSS | 2 | 14 | 4 | 92 |
JavaScript | 2 | 4 | 27 | 23 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 2.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.18 |
▷ 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 | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.24% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.51MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
.wordpress-org/banner-772x250.png | 32.05KB | 12.81KB | ▼ 60.04% |
.wordpress-org/icon-128x128.png | 14.26KB | 5.20KB | ▼ 63.53% |
.wordpress-org/anner-1544x500.png | 76.75KB | 31.27KB | ▼ 59.26% |
.wordpress-org/screenshot-1.png | 310.00KB | 85.53KB | ▼ 72.41% |
.wordpress-org/screenshot-2.png | 44.55KB | 16.78KB | ▼ 62.34% |