68% glossy

Code Review | Glossy

WordPress plugin Glossy scored 68% from 54 tests.

About plugin

  • Plugin page: glossy
  • Plugin version: 2.3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.6.1
  • WordPress version: 6.3.1
  • First release: Sep 22, 2011
  • Latest release: Oct 2, 2013
  • Number of updates: 47
  • Update frequency: every 15.8 days
  • Top authors: Columcille (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

40+ active / 8,527 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0843.92 ▲3.47
Dashboard /wp-admin3.41 ▲0.1045.53 ▼3.62
Posts /wp-admin/edit.php3.52 ▲0.1649.41 ▲0.82
Add New Post /wp-admin/post-new.php5.99 ▲0.1094.55 ▼4.22
Media Library /wp-admin/upload.php3.33 ▲0.1039.47 ▲6.48
Import Entries /wp-admin/admin.php?page=glossy-import3.3032.06
Export Entries /wp-admin/admin.php?page=glossy-export3.3029.99
Add Entry /wp-admin/admin.php?page=glossy-add-entry3.3739.41
Glossy Options /wp-admin/admin.php?page=glossy-settings3.3132.94
Manage Entries /wp-admin/admin.php?page=manage-entries3.3232.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲11513.24 ▼1.061.80 ▼0.1343.59 ▼1.00
Dashboard /wp-admin2,251 ▲605.83 ▲0.95101.61 ▼0.0040.95 ▼1.31
Posts /wp-admin/edit.php2,136 ▲442.00 ▼0.0640.45 ▼2.2036.42 ▲1.71
Add New Post /wp-admin/post-new.php1,578 ▲3623.03 ▲4.78644.38 ▲41.9152.31 ▲8.84
Media Library /wp-admin/upload.php1,439 ▲544.24 ▲0.0596.16 ▼1.3542.75 ▼2.20
Import Entries /wp-admin/admin.php?page=glossy-import8472.0425.3730.53
Export Entries /wp-admin/admin.php?page=glossy-export8412.0733.6528.20
Add Entry /wp-admin/admin.php?page=glossy-add-entry1,5856.54126.2453.39
Glossy Options /wp-admin/admin.php?page=glossy-settings9292.1526.7328.63
Manage Entries /wp-admin/admin.php?page=manage-entries7231.536.4817.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP723993981
CSS17032

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 code0.44
Average class complexity91.00
▷ Minimum class complexity91.00
▷ Maximum class complexity91.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods1477.78%
▷ Protected methods00.00%
▷ Private methods422.22%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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