74% url-field-remover-for-generatepress

Code Review | URL Field Remover for GeneratePress

WordPress plugin URL Field Remover for GeneratePress scored74%from 54 tests.

About plugin

  • Plugin page: url-field-remover...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.2
  • WordPress version: 6.3.1
  • First release: Nov 17, 2021
  • Latest release: Nov 26, 2021
  • Number of updates: 8
  • Update frequency: every 1.1 days
  • Top authors: wptracer37 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /378 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.96MB] [CPU: ▼38.19ms] Passed 4 tests

An overview of server-side resources used by URL Field Remover for GeneratePress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.38 ▼1.47
Dashboard /wp-admin3.00 ▼0.3523.28 ▼43.36
Posts /wp-admin/edit.php3.00 ▼0.3630.38 ▼24.24
Add New Post /wp-admin/post-new.php3.00 ▼2.8923.38 ▼76.24
Media Library /wp-admin/upload.php3.00 ▼0.2325.80 ▼8.90

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for URL Field Remover for GeneratePress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6914.63 ▲0.282.28 ▲0.5657.14 ▲13.51
Dashboard /wp-admin2,211 ▲345.63 ▼0.1891.10 ▼5.3637.03 ▼0.84
Posts /wp-admin/edit.php2,119 ▲191.99 ▼0.0340.56 ▼0.1136.93 ▼2.71
Add New Post /wp-admin/post-new.php1,539 ▲423.19 ▲4.79662.15 ▲15.5351.55 ▼13.66
Media Library /wp-admin/upload.php1,416 ▲164.20 ▼0.0199.89 ▼1.5543.68 ▼2.84

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

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
Good news, no errors were detected

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 fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/url-field-remover-for-generatepress/url-field-remover-for-generatepress.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% 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
These attributes need your attention:
  • Screenshots: Screenshot #1 (The URL parameter is removed from Comment box in GeneratePress Theme.) image required
You can take inspiration from this readme.txt

url-field-remover-for-generatepress/url-field-remover-for-generatepress.php Passed 13 tests

The main PHP script in "URL Field Remover for GeneratePress" version 1.0.3 is automatically included on every request by WordPress
86 characters long description:
This plugin helps remove the default URL field from GeneratePress theme's comment box.

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
No dangerous file extensions were detected25 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP131225

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png25.15KB10.59KB▼ 57.90%