Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼0.89ms] Passed 4 tests
Analyzing server-side resources used by Glossy
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 43.92 ▲3.47 |
Dashboard /wp-admin | 3.41 ▲0.10 | 45.53 ▼3.62 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 49.41 ▲0.82 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 94.55 ▼4.22 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 39.47 ▲6.48 |
Import Entries /wp-admin/admin.php?page=glossy-import | 3.30 | 32.06 |
Export Entries /wp-admin/admin.php?page=glossy-export | 3.30 | 29.99 |
Add Entry /wp-admin/admin.php?page=glossy-add-entry | 3.37 | 39.41 |
Glossy Options /wp-admin/admin.php?page=glossy-settings | 3.31 | 32.94 |
Manage Entries /wp-admin/admin.php?page=manage-entries | 3.32 | 32.61 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_gs_store |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
recovery_mode_email_last_sent |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Glossy
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲115 | 13.24 ▼1.06 | 1.80 ▼0.13 | 43.59 ▼1.00 |
Dashboard /wp-admin | 2,251 ▲60 | 5.83 ▲0.95 | 101.61 ▼0.00 | 40.95 ▼1.31 |
Posts /wp-admin/edit.php | 2,136 ▲44 | 2.00 ▼0.06 | 40.45 ▼2.20 | 36.42 ▲1.71 |
Add New Post /wp-admin/post-new.php | 1,578 ▲36 | 23.03 ▲4.78 | 644.38 ▲41.91 | 52.31 ▲8.84 |
Media Library /wp-admin/upload.php | 1,439 ▲54 | 4.24 ▲0.05 | 96.16 ▼1.35 | 42.75 ▼2.20 |
Import Entries /wp-admin/admin.php?page=glossy-import | 847 | 2.04 | 25.37 | 30.53 |
Export Entries /wp-admin/admin.php?page=glossy-export | 841 | 2.07 | 33.65 | 28.20 |
Add Entry /wp-admin/admin.php?page=glossy-add-entry | 1,585 | 6.54 | 126.24 | 53.39 |
Glossy Options /wp-admin/admin.php?page=glossy-settings | 929 | 2.15 | 26.73 | 28.63 |
Manage Entries /wp-admin/admin.php?page=manage-entries | 723 | 1.53 | 6.48 | 17.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure failed, leaving 1 table in the database
- wp_gs_store
- The uninstall procedure has failed, leaving 7 options in the database
- recovery_mode_email_last_sent
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=manage-entries
- > Error in wp-content/plugins/glossy/glossy.admin.manageEntries.php+124
Uncaught Error: Class 'Tippy' not found in wp-content/plugins/glossy/glossy.admin.manageEntries.php:124
Stack trace:
#0 wp-content/plugins/glossy/glossy.admin.php(77): gs_manageEntries_panel()
#1 wp-includes/class-wp-hook.php(310): gs_manageEntries()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown
SRP 50% 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
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/glossy/glossy.php on line 45
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/glossy/glossy.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/glossy/glossy.admin.php:99
- > PHP Notice
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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: tooltip, glossary, popup, dictionary
glossy/glossy.php Passed 13 tests
The principal PHP file in "Glossy" v. 2.3.5 is loaded by WordPress automatically on each request
100 characters long description:
Makes it easy to create site-wide glossary or dictionary entries which pop up using the Tippy 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
Everything looks great! No dangerous files found in this plugin1,013 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 239 | 93 | 981 |
CSS | 1 | 7 | 0 | 32 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 91.00 |
▷ Minimum class complexity | 91.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 6.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 18 | |
▷ Static methods | 1 | 5.56% |
▷ Public methods | 14 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 22.22% |
Functions | 13 | |
▷ Named functions | 13 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin