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.03MB] [CPU: ▼6.53ms] Passed 4 tests
A check of server-side resources used by WordPress.org Glossary
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 40.05 ▼2.84 |
Dashboard /wp-admin | 3.33 ▲0.03 | 52.90 ▲5.33 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 46.10 ▼4.85 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 82.75 ▼23.71 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 42.84 ▲5.29 |
Add New /wp-admin/post-new.php?post_type=glossary | 3.37 | 49.82 |
Glossary /wp-admin/edit.php?post_type=glossary | 3.30 | 38.26 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
WordPress.org Glossary: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲177 | 13.70 ▼0.51 | 7.98 ▲5.56 | 42.73 ▼2.39 |
Dashboard /wp-admin | 2,232 ▲41 | 5.83 ▲0.93 | 96.75 ▼5.44 | 39.64 ▼1.88 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.03 ▲0.05 | 36.12 ▼4.66 | 36.69 ▼1.79 |
Add New Post /wp-admin/post-new.php | 1,539 ▲20 | 17.63 ▼5.57 | 678.04 ▼12.54 | 54.66 ▼1.34 |
Media Library /wp-admin/upload.php | 1,420 ▲32 | 4.10 ▼0.13 | 104.71 ▼10.31 | 47.99 ▼0.68 |
Add New /wp-admin/post-new.php?post_type=glossary | 2,208 | 7.68 | 178.01 | 73.29 |
Glossary /wp-admin/edit.php?post_type=glossary | 1,082 | 1.96 | 30.02 | 29.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% from 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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wporg-glossary/tests/bootstrap.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wporg-glossary/includes/class-glossary-hovercards.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wporg-glossary/tests/test-sample.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wporg-glossary/includes/class-glossary-hovercards.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wporg-glossary/includes/class-glossary-admin.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Screenshot #1 (An example showing a tooltip with a definition for the term "meta".) image not found
wporg-glossary/wporg-glossary.php Passed 13 tests
The main PHP file in "WordPress.org Glossary" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
35 characters long description:
Interactive WordPress.org glossary.
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
Good job! No executable or dangerous file extensions detected747 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 74 | 122 | 313 |
Bourne Shell | 1 | 21 | 11 | 120 |
YAML | 2 | 16 | 23 | 102 |
JavaScript | 4 | 15 | 10 | 79 |
CSS | 1 | 13 | 0 | 74 |
XML | 2 | 4 | 12 | 46 |
JSON | 1 | 1 | 0 | 11 |
Markdown | 1 | 0 | 0 | 2 |
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.44 |
Average class complexity | 11.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 95.24% |
▷ Protected methods | 1 | 4.76% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 1 | 20.00% |
▷ Anonymous functions | 4 | 80.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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 106.59KB | 35.42KB | ▼ 66.77% |