84% ginger-tag-remover

Code Review | Ginger tag remover

WordPress plugin Ginger tag remover scored84%from 54 tests.

About plugin

  • Plugin page: ginger-tag-remover
  • Plugin version: 0.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6
  • WordPress version: 6.3.1
  • First release: Oct 16, 2013
  • Latest release: Dec 10, 2013
  • Number of updates: 8
  • Update frequency: every 7.0 days
  • Top authors: jlisnic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,367 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.81ms] Passed 4 tests

An overview of server-side resources used by Ginger tag remover
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.96 ▼3.62
Dashboard /wp-admin3.31 ▲0.0046.54 ▼2.52
Posts /wp-admin/edit.php3.36 ▲0.0042.26 ▼3.84
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.24 ▼14.92
Media Library /wp-admin/upload.php3.23 ▲0.0033.14 ▼4.84

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Ginger tag remover
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.19 ▼1.581.78 ▼0.0940.75 ▼4.76
Dashboard /wp-admin2,203 ▲115.79 ▲0.8798.86 ▼21.9538.73 ▼5.06
Posts /wp-admin/edit.php2,089 ▲32.02 ▲0.0235.26 ▲0.4132.85 ▼0.73
Add New Post /wp-admin/post-new.php1,534 ▲1423.13 ▲0.08659.99 ▼15.8268.23 ▲10.56
Media Library /wp-admin/upload.php1,385 ▼34.24 ▲0.0496.07 ▼4.0541.74 ▼3.47

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/ginger-tag-remover/ginger-tag-remover.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === ginger-tag-remover === )
You can look at the official readme.txt

ginger-tag-remover/ginger-tag-remover.php 92% from 13 tests

The primary PHP file in "Ginger tag remover" version 0.0.3 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 151 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
Good job! No executable or dangerous file extensions detected17 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1112117

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin