80% mi13-glossary

Code Review | mi13-glossary

WordPress plugin mi13-glossary scored 80% from 54 tests.

About plugin

  • Plugin page: mi13-glossary
  • Plugin version: 2.8
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 27, 2021
  • Latest release: Aug 16, 2023
  • Number of updates: 13
  • Update frequency: every 52.9 days
  • Top authors: mi13 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 468 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.11MB] [CPU: ▲2.50ms] Passed 4 tests

Analyzing server-side resources used by mi13-glossary
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1141.83 ▲3.57
Dashboard /wp-admin3.42 ▲0.1147.75 ▲1.05
Posts /wp-admin/edit.php3.53 ▲0.1749.46 ▲2.11
Add New Post /wp-admin/post-new.php6.00 ▲0.1194.63 ▲3.27
Media Library /wp-admin/upload.php3.34 ▲0.1137.74 ▲3.63
mi13-glossary /wp-admin/options-general.php?page=mi13_glossary3.3131.41
mi13 glossary /wp-admin/edit.php?post_type=mi13_glossary3.3935.85
Add New /wp-admin/post-new.php?post_type=mi13_glossary3.4648.24

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
mi13_glossary
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for mi13-glossary
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,859 ▲11313.65 ▼0.741.86 ▲0.1442.50 ▲5.71
Dashboard /wp-admin2,240 ▲494.87 ▼0.05103.12 ▼9.8441.98 ▼2.14
Posts /wp-admin/edit.php2,120 ▲312.06 ▲0.0839.92 ▼2.0640.23 ▲4.20
Add New Post /wp-admin/post-new.php1,545 ▲1223.09 ▲0.00578.51 ▼155.0454.32 ▲1.62
Media Library /wp-admin/upload.php1,422 ▲344.23 ▲0.10100.72 ▼1.6143.69 ▼1.13
mi13-glossary /wp-admin/options-general.php?page=mi13_glossary8862.0524.9628.28
mi13 glossary /wp-admin/edit.php?post_type=mi13_glossary1,0922.0034.3232.20
Add New /wp-admin/post-new.php?post_type=mi13_glossary2,2087.77183.8164.20

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/mi13-glossary/mi13-glossary.php+46
    Use of undefined constant WP_UNINSTALL_PLUGIN - assumed 'WP_UNINSTALL_PLUGIN' (this will throw an Error in a future version of PHP)
  • Zombie WordPress options were found after uninstall: 7 options
    • mi13_glossary
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: modal keys, glossary

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

The primary PHP file in "mi13-glossary" version 2.8 is used by WordPress to initiate all plugin functionality
35 characters long description:
Glossary plugin for your site (ru).

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 plugin681 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP12819591
CSS10050
JavaScript23340

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions21
▷ Named functions1885.71%
▷ Anonymous functions314.29%
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