89% remove-generator-tag-for-wordpress

Code Review | WP Remove Generator Meta Tag

WordPress plugin WP Remove Generator Meta Tag scored89%from 54 tests.

About plugin

  • Plugin page: remove-generator-...
  • Plugin version: 15.01
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.0-4.1.0
  • WordPress version: 6.3.1
  • First release: Sep 7, 2010
  • Latest release: Jan 15, 2016
  • Number of updates: 20
  • Update frequency: every 97.8 days
  • Top authors: christopherross (95%)meaganhanes (10%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /9,988 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.70ms] Passed 4 tests

An overview of server-side resources used by WP Remove Generator Meta Tag
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.18 ▼3.74
Dashboard /wp-admin3.34 ▲0.0050.28 ▼13.09
Posts /wp-admin/edit.php3.39 ▲0.0453.15 ▲5.44
Add New Post /wp-admin/post-new.php5.92 ▲0.0485.98 ▼14.79
Media Library /wp-admin/upload.php3.27 ▲0.0439.74 ▲4.81

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Remove Generator Meta Tag
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲5213.58 ▼0.794.46 ▲2.6043.51 ▲0.05
Dashboard /wp-admin2,206 ▲184.86 ▼0.05113.43 ▲1.7244.49 ▲2.42
Posts /wp-admin/edit.php2,089 ▲32.04 ▲0.0434.73 ▼3.6532.66 ▼0.95
Add New Post /wp-admin/post-new.php1,533 ▲1423.08 ▼0.11682.86 ▲79.6053.40 ▲4.64
Media Library /wp-admin/upload.php1,385 ▼34.24 ▲0.0699.69 ▼23.6542.54 ▼0.32

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (The WP Generator Tag, which will be removed by this plugin) image not found
The official readme.txt is a good inspiration

remove-generator-tag-for-wordpress/wp-remove-generator-meta.php 85% from 13 tests

Analyzing the main PHP file in "WP Remove Generator Meta Tag" version 15.01
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("remove-generator-tag-for-wordpress.php" instead of "wp-remove-generator-meta.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 150 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
No dangerous file extensions were detected305 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3123169148
PO File24280126
CSS121631

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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
No PNG images were found in this plugin