83% ghost-tags

Code Review | Ghost Tags

WordPress plugin Ghost Tags scored 83% from 54 tests.

About plugin

  • Plugin page: ghost-tags
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 22, 2012
  • Latest release: Jun 28, 2012
  • Number of updates: 9
  • Update frequency: every 14.1 days
  • Top authors: nuvuscripts (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 3,726 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
Install script ran successfully

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

Server-side resources used by Ghost Tags
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.71 ▲0.15
Dashboard /wp-admin3.32 ▲0.0244.30 ▼3.53
Posts /wp-admin/edit.php3.37 ▲0.0246.88 ▲0.95
Add New Post /wp-admin/post-new.php5.90 ▲0.0293.46 ▲4.50
Media Library /wp-admin/upload.php3.24 ▲0.0236.67 ▲4.91

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_widget_ghosttags
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ghost Tags
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲16213.60 ▼1.019.03 ▲7.2138.10 ▼6.59
Dashboard /wp-admin2,206 ▲354.85 ▼0.07100.27 ▲0.2544.25 ▼1.85
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0138.94 ▲2.5735.42 ▲1.25
Add New Post /wp-admin/post-new.php1,533 ▲1223.27 ▲0.35645.16 ▼18.1557.08 ▼6.20
Media Library /wp-admin/upload.php1,388 ▼34.21 ▼0.0197.09 ▼4.9241.71 ▼0.70

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
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_widget_ghosttags
    • theysaidso_admin_options

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ghost-tags/ghost-tags.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === ghost-tags === )
  • Screenshots: These screenshots require images: #1 (/trunk/screenshots/screenshot-1.png), #2 (/trunk/screenshots/screenshot-2.png), #3 (/trunk/screenshots/screenshot-3.png), #4 (/trunk/screenshots/screenshot-4.png), #5 (/trunk/screenshots/screenshot-5.png), #6 (/trunk/screenshots/screenshot-6.png)
  • Requires at least: Version format is invalid
Please take inspiration from this readme.txt

ghost-tags/ghost-tags.php Passed 13 tests

Analyzing the main PHP file in "Ghost Tags" version 1.5
24 characters long description:
Display Tags as a Widget

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected161 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS19065
PHP1303063
JavaScript122233

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
2 PNG files occupy 0.26MB with 0.13MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshots/screenshot-2.png203.53KB91.43KB▼ 55.08%
screenshots/screenshot-1.png62.89KB33.54KB▼ 46.67%