84% regpack

Code Review | Regpack

WordPress plugin Regpack scored84%from 54 tests.

About plugin

  • Plugin page: regpack
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.2
  • WordPress version: 6.3.1
  • First release: Mar 30, 2020
  • Latest release: May 12, 2020
  • Number of updates: 7
  • Update frequency: every 7.7 days
  • Top authors: regpack (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /351 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Regpack
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.06 ▲0.97
Dashboard /wp-admin3.31 ▼0.0347.54 ▼9.49
Posts /wp-admin/edit.php3.36 ▲0.0142.66 ▼2.94
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.82 ▼17.60
Media Library /wp-admin/upload.php3.24 ▲0.0136.65 ▲4.26
Regpack Settings /wp-admin/options-general.php?page=regpack3.2027.97

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
regpack_embed_script

Browser metrics Passed 4 tests

This is an overview of browser requirements for Regpack
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.74 ▲0.451.82 ▲0.1443.30 ▼0.90
Dashboard /wp-admin2,210 ▲185.85 ▲0.91102.20 ▼6.5637.45 ▼5.62
Posts /wp-admin/edit.php2,093 ▲42.03 ▼0.0236.95 ▲2.6932.73 ▼0.22
Add New Post /wp-admin/post-new.php1,517 ▲317.56 ▼0.30683.71 ▲15.7954.84 ▲4.43
Media Library /wp-admin/upload.php1,392 ▲74.16 ▲0.0095.71 ▼8.9745.05 ▼0.10
Regpack Settings /wp-admin/options-general.php?page=regpack8342.0222.5526.16

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • regpack_embed_script
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/regpack/regpack.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: regpack

regpack/regpack.php 92% from 13 tests

The main PHP file in "Regpack" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected97 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1162597

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions8
▷ Named functions8100.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
There were not PNG files found in your plugin