90% sacredbits-remove-website-link-input-field-from-comment-form-of-post

Code Review | SacredBits Remove Website Link Input Field From Comment Form of Post

WordPress plugin SacredBits Remove Website Link Input Field From Comment Form of Post scored90%from 54 tests.

About plugin

  • Plugin page: sacredbits-remove...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.3.2
  • WordPress version: 6.3.1
  • First release: Mar 11, 2020
  • Latest release: Mar 11, 2020
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: sacredbits (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /393 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

Server-side resources used by SacredBits Remove Website Link Input Field From Comment Form of Post
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.99 ▼2.16
Dashboard /wp-admin3.31 ▼0.0343.84 ▼16.46
Posts /wp-admin/edit.php3.36 ▲0.0144.51 ▼4.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.55 ▼3.15
Media Library /wp-admin/upload.php3.23 ▲0.0133.02 ▲0.14

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

Analyzing filesystem and database footprints of this plugin
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_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for SacredBits Remove Website Link Input Field From Comment Form of Post
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.39 ▼0.954.78 ▲3.1840.19 ▼1.47
Dashboard /wp-admin2,206 ▲215.85 ▼0.02109.07 ▲9.3741.84 ▲0.14
Posts /wp-admin/edit.php2,089 ▲182.06 ▲0.0339.15 ▲4.7234.67 ▼0.38
Add New Post /wp-admin/post-new.php1,542 ▲718.29 ▼4.83607.10 ▼74.4055.75 ▲2.74
Media Library /wp-admin/upload.php1,382 ▼64.20 ▼0.0199.59 ▼3.4441.50 ▼4.64

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: url, wp, comment form

sacredbits-remove-website-link-input-field-from-comment-form-of-post/sacredbits-remove-website-link-input-field-from-comment-form-of-post.php 92% from 13 tests

The entry point to "SacredBits Remove Website Link Input Field From Comment Form of Post" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 332 characters long)

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 detected29 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP141329

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshots/screenshot-1.png50.64KB14.11KB▼ 72.14%