10% my-content-glossary

Code Review | My Content Glossary

WordPress plugin My Content Glossary scored 10% from 54 tests.

About plugin

  • Plugin page: my-content-glossary
  • Plugin version: 1.3.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6
  • WordPress version: 5.9.2
  • First release: Mar 20, 2013
  • Latest release: Sep 27, 2016
  • Number of updates: 12
  • Update frequency: every 107.3 days
  • Top authors: joedolson (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 3,339 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/my-content-glossary/my-content-glossary.php+39
    Function create_function() is deprecated

Server metrics [RAM: ▼2.47MB] [CPU: ▼343.75ms] Passed 4 tests

A check of server-side resources used by My Content Glossary
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /1.89 ▼1.624.61 ▼44.54
Dashboard /wp-admin1.91 ▼1.494.52 ▼28.54
Posts /wp-admin/edit.php1.91 ▼1.735.34 ▼31.18
Add New Post /wp-admin/post-new.php1.91 ▼5.065.28 ▼1,270.74
Media Library /wp-admin/upload.php1.91 ▼1.384.20 ▼21.16

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for My Content Glossary
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,774 ▲2015.95 ▲0.156.29 ▼0.142.36 ▼0.23
Dashboard /wp-admin2,896 ▲356.12 ▼0.05129.28 ▼9.20152.13 ▼8.97
Posts /wp-admin/edit.php2,703 ▲123.23 ▼0.0165.32 ▼1.31141.91 ▼2.82
Add New Post /wp-admin/post-new.php1,668 ▼9016.22 ▼5.88422.11 ▼45.11157.30 ▲2.22
Media Library /wp-admin/upload.php1,712 ▲145.55 ▲0.02143.10 ▲1.65184.13 ▼0.17

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/my-content-glossary/my-content-glossary.php+39
    Function create_function() is deprecated

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-content-glossary/my-content-glossary.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

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
5 plugin tags: definition, dictionary, post types, glossary, custom post types

my-content-glossary/my-content-glossary.php Passed 13 tests

The primary PHP file in "My Content Glossary" version 1.3.8 is used by WordPress to initiate all plugin functionality
115 characters long description:
Adds custom glossary features: filters content for links to terms, etc. Companion plug-in to My Content Management.

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
No dangerous file extensions were detected116 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11232116

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin