84% remove-meta-generators

Code Review | Remove Meta Generators

WordPress plugin Remove Meta Generators scored84%from 54 tests.

About plugin

  • Plugin page: remove-meta-gener...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-6.2
  • WordPress version: 6.3.1
  • First release: Oct 16, 2018
  • Latest release: Apr 15, 2023
  • Number of updates: 10
  • Update frequency: every 164.2 days
  • Top authors: webbernaut (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,197 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.01MB] [CPU: ▼6.95ms] Passed 4 tests

An overview of server-side resources used by Remove Meta Generators
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1035.68 ▼5.98
Dashboard /wp-admin3.31 ▲0.0149.00 ▼4.59
Posts /wp-admin/edit.php3.37 ▲0.0151.07 ▲0.42
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.20 ▼14.60
Media Library /wp-admin/upload.php3.24 ▲0.0134.74 ▼2.64

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Remove Meta Generators
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,787 ▲114.17 ▼0.181.98 ▲0.3340.04 ▼2.23
Dashboard /wp-admin2,198 ▲215.64 ▼0.0196.56 ▲2.3441.56 ▼2.28
Posts /wp-admin/edit.php2,097 ▼31.96 ▼0.0140.94 ▲0.1039.66 ▲3.14
Add New Post /wp-admin/post-new.php1,526 ▼223.58 ▲0.56687.06 ▼4.6959.83 ▼5.93
Media Library /wp-admin/upload.php1,403 ▲34.21 ▲0.0298.25 ▼5.6343.04 ▼3.33

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/remove-meta-generators/index.php

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
You can look at the official readme.txt

remove-meta-generators/remove-meta-generators.php Passed 13 tests

The principal PHP file in "Remove Meta Generators" v. 1.0 is loaded by WordPress automatically on each request
92 characters long description:
Remove all meta generator tags for all plugins. No settings necessary! Install and activate.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected26 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP281226

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin