84% metabox-glossary

Code Review | Metabox Glossary

WordPress plugin Metabox Glossary scored 84% from 54 tests.

About plugin

  • Plugin page: metabox-glossary
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.3
  • WordPress version: 6.3.1
  • First release: Jul 21, 2015
  • Latest release: Aug 8, 2015
  • Number of updates: 6
  • Update frequency: every 4.8 days
  • Top authors: k2klettern (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 844 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.09ms] Passed 4 tests

Analyzing server-side resources used by Metabox Glossary
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.40 ▼3.15
Dashboard /wp-admin3.31 ▲0.0045.38 ▼7.96
Posts /wp-admin/edit.php3.36 ▲0.0049.62 ▼1.57
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.20 ▼4.67
Media Library /wp-admin/upload.php3.23 ▲0.0034.61 ▼4.57

Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Metabox Glossary: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.58 ▼0.811.73 ▼0.0842.98 ▼8.44
Dashboard /wp-admin2,209 ▲214.86 ▼0.0396.97 ▼13.6440.56 ▲0.07
Posts /wp-admin/edit.php2,086 ▼61.99 ▼0.0539.72 ▼1.0735.58 ▲0.38
Add New Post /wp-admin/post-new.php1,533 ▲1923.56 ▲5.88650.40 ▼28.7956.91 ▼0.82
Media Library /wp-admin/upload.php1,382 ▼64.19 ▲0.0194.03 ▼2.9641.12 ▼7.18

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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 take a closer look at the following
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/metabox-glossary/widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/metabox-glossary/metabox-glossary.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/metabox-glossary/functions.php:15
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/metabox-glossary/metabox-glossary.php on line 28
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/metabox-glossary/metabox-glossary.php on line 28
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/metabox-glossary/metabox-glossary.php on line 28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Create a Widget to show the Glossary Items filtered, can be filtered from A to Z or be show as a list.), #2 (This is how items as a list will be show), #3 (This is how filtered A to Z list will be show), #4 (This is how the metabox is show on the post create or Edit)
Please take inspiration from this readme.txt

metabox-glossary/metabox-glossary.php Passed 13 tests

"Metabox Glossary" version 0.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
26 characters long description:
Metabox Glossary filtering

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin235 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP43930173
CSS1182162

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin