84% wp-simply-remove-generator-tag

Code Review | WP-Simply remove generator tag

WordPress plugin WP-Simply remove generator tag scored84%from 54 tests.

About plugin

  • Plugin page: wp-simply-remove-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.6
  • WordPress version: 6.3.1
  • First release: Aug 11, 2014
  • Latest release: Nov 12, 2016
  • Number of updates: 15
  • Update frequency: every 54.9 days
  • Top authors: pr3ss-play (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,229 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Server-side resources used by WP-Simply remove generator tag
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.70 ▼0.82
Dashboard /wp-admin3.31 ▲0.0050.16 ▲0.34
Posts /wp-admin/edit.php3.36 ▲0.0050.90 ▲2.22
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.78 ▼9.69
Media Library /wp-admin/upload.php3.23 ▲0.0036.08 ▼0.18

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

WP-Simply remove generator tag: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,787 ▲2614.65 ▼0.081.64 ▼0.0040.07 ▼6.86
Dashboard /wp-admin2,192 ▲245.60 ▲0.0292.73 ▼9.1036.65 ▼6.94
Posts /wp-admin/edit.php2,097 ▼62.02 ▲0.0439.20 ▼0.7335.96 ▲1.91
Add New Post /wp-admin/post-new.php1,526 ▼023.14 ▲0.18668.18 ▼13.5453.78 ▼6.20
Media Library /wp-admin/upload.php1,400 ▼04.15 ▲0.04104.80 ▼10.8046.27 ▼3.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-simply-remove-generator-tag/simply-remove-generator-tag.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: webmaster, protect, remove generator, wordpress version, meta...

wp-simply-remove-generator-tag/simply-remove-generator-tag.php 92% from 13 tests

The entry point to "WP-Simply remove generator tag" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-simply-remove-generator-tag.php" instead of "simply-remove-generator-tag.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected3 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1193

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions0
▷ Named functions00.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
No PNG files were detected