78% glossarey

Code Review | Glossarey

WordPress plugin Glossarey scored78%from 54 tests.

About plugin

  • Plugin page: glossarey
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5
  • WordPress version: 6.3.1
  • First release: Jan 6, 2013
  • Latest release: Feb 25, 2013
  • Number of updates: 14
  • Update frequency: every 3.6 days
  • Top authors: lubomir.herko (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /994 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.95ms] Passed 4 tests

This is a short check of server-side resources used by Glossarey
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0343.17 ▼1.83
Dashboard /wp-admin3.33 ▼0.0159.00 ▼2.60
Posts /wp-admin/edit.php3.38 ▲0.0353.03 ▲1.38
Add New Post /wp-admin/post-new.php5.91 ▲0.0398.26 ▼4.75
Media Library /wp-admin/upload.php3.25 ▲0.0336.23 ▲3.44
All entries /wp-admin/edit.php?post_type=glossary_term3.3037.51
Options /wp-admin/edit.php?post_type=glossary_term&page=glossary-options3.2232.05
Add New /wp-admin/post-new.php?post_type=glossary_term3.3749.30

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Glossarey
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,930 ▲18414.01 ▼0.6310.26 ▲8.1041.52 ▼1.80
Dashboard /wp-admin2,245 ▲545.85 ▲0.94100.02 ▼10.5278.80 ▲37.30
Posts /wp-admin/edit.php2,125 ▲362.15 ▲0.1838.17 ▼3.1938.47 ▲1.96
Add New Post /wp-admin/post-new.php1,559 ▲3118.27 ▼5.02669.84 ▲2.2670.19 ▲15.32
Media Library /wp-admin/upload.php1,421 ▲334.08 ▼0.1496.63 ▼2.8574.37 ▲30.29
All entries /wp-admin/edit.php?post_type=glossary_term1,0751.9731.4129.01
Options /wp-admin/edit.php?post_type=glossary_term&page=glossary-options8072.0123.5524.26
Add New /wp-admin/post-new.php?post_type=glossary_term2,1757.72170.01141.01

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/glossarey/glossarey.php:26

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=glossary_term
    • > Network (severe)
    wp-content/plugins/glossarey/assets/img/dictionary.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/post-new.php?post_type=glossary_term
    • > Network (severe)
    wp-content/plugins/glossarey/assets/js/editor_plugin.js?wp-mce-49110-20201110 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: glossary, dictionary

glossarey/glossarey.php 92% from 13 tests

The principal PHP file in "Glossarey" v. 0.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 163 characters long)

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
There were no executable files found in this plugin113 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11530113

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions12
▷ Named functions12100.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
PNG images were not found in this plugin