89% best-wp-glossary

Code Review | WP Best Glossary

WordPress plugin WP Best Glossary scored89%from 54 tests.

About plugin

  • Plugin page: best-wp-glossary
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-5.7
  • WordPress version: 6.3.1
  • First release: Mar 9, 2021
  • Latest release: Mar 10, 2021
  • Number of updates: 11
  • Update frequency: every 0.1 days
  • Top authors: cortesfrau (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /387 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼9.00ms] Passed 4 tests

Analyzing server-side resources used by WP Best Glossary
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.28 ▼4.39
Dashboard /wp-admin3.36 ▲0.0247.75 ▼10.34
Posts /wp-admin/edit.php3.41 ▲0.0545.49 ▼7.31
Add New Post /wp-admin/post-new.php6.03 ▲0.1581.81 ▼13.95
Media Library /wp-admin/upload.php3.28 ▲0.0538.53 ▲5.24
Settings /wp-admin/admin.php?page=bwpg-settings3.2537.01
Glossary Word /wp-admin/edit.php?post_type=bwpg_word3.3235.73

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Best Glossary
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲14513.99 ▼0.629.61 ▲7.5644.65 ▼1.52
Dashboard /wp-admin2,233 ▲455.88 ▼0.02109.85 ▼7.8742.63 ▲1.43
Posts /wp-admin/edit.php2,119 ▲302.00 ▼0.0240.81 ▲0.5135.61 ▲0.88
Add New Post /wp-admin/post-new.php1,556 ▲2323.41 ▲0.34697.60 ▲69.1167.18 ▲18.18
Media Library /wp-admin/upload.php1,415 ▲304.26 ▲0.04105.09 ▼0.3343.29 ▼2.78
Settings /wp-admin/admin.php?page=bwpg-settings9852.6258.5729.34
Glossary Word /wp-admin/edit.php?post_type=bwpg_word1,0801.9931.8028.53

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

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 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
1 plugin tags: glossary

best-wp-glossary/wp-best-glossary.php 85% from 13 tests

"WP Best Glossary" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("best-wp-glossary.php" instead of "wp-best-glossary.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected240 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP109972236
JavaScript20103
CSS1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
PNG images were not found in this plugin