84% regcheck

Code Review | Regcheck

WordPress plugin Regcheck scored84%from 54 tests.

About plugin

  • Plugin page: regcheck
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.1.0
  • WordPress version: 6.3.1
  • First release: Nov 10, 2019
  • Latest release: Nov 20, 2019
  • Number of updates: 7
  • Update frequency: every 1.9 days
  • Top authors: zaymund (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /555 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.10MB] [CPU: ▼1.62ms] Passed 4 tests

An overview of server-side resources used by Regcheck
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1041.49 ▼4.25
Dashboard /wp-admin3.41 ▲0.1049.43 ▼2.90
Posts /wp-admin/edit.php3.52 ▲0.1750.58 ▲2.55
Add New Post /wp-admin/post-new.php5.99 ▲0.1096.94 ▲0.74
Media Library /wp-admin/upload.php3.33 ▲0.1038.46 ▼0.07
Regcheck /wp-admin/tools.php?page=regcheck-car-option3.3134.60

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

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

Browser metrics Passed 4 tests

Regcheck: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.26 ▲0.022.51 ▲0.2040.98 ▼4.52
Dashboard /wp-admin2,199 ▲225.61 ▲0.0983.46 ▼17.4541.97 ▼2.06
Posts /wp-admin/edit.php2,104 ▲41.97 ▼0.0240.24 ▲2.9534.95 ▼1.53
Add New Post /wp-admin/post-new.php1,529 ▼023.05 ▼0.20644.27 ▲37.1050.66 ▲1.93
Media Library /wp-admin/upload.php1,398 ▼54.27 ▲0.0898.66 ▼4.7542.92 ▼6.50
Regcheck /wp-admin/tools.php?page=regcheck-car-option1,4682.1222.8425.36

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 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)
Good news, no errors were detected

SRP 50% from 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
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/regcheck/recaptcha/ReCaptcha/RequestMethod/CurlPost.php:37
    • > PHP Fatal error
      Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/regcheck/recaptcha/ReCaptcha/RequestMethod/SocketPost.php:37
    • > PHP Fatal error
      Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/regcheck/recaptcha/ReCaptcha/RequestMethod/Post.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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: vin checker, car checker, number car checker

regcheck/regcheck.php 92% from 13 tests

Analyzing the main PHP file in "Regcheck" version 1.0.2
It is important to fix the following:
  • Description: A good plugin description is longer than 10 characters (currently 8 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin970 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP14153498863
CSS2220107

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity11.20
▷ Minimum class complexity1.00
▷ Maximum class complexity81.00
Average method complexity3.37
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces2
Interfaces1
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods44
▷ Static methods1738.64%
▷ Public methods44100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants7
▷ Global constants00.00%
▷ Class constants7100.00%
▷ Public constants7100.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
No PNG images were found in this plugin