78% rega-verifier

Code Review | REGA Verifier

WordPress plugin REGA Verifier scored78%from 54 tests.

About plugin

  • Plugin page: rega-verifier
  • Plugin version: 0.151
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.1-6.0.1
  • WordPress version: 6.3.1
  • First release: Oct 14, 2022
  • Latest release: Oct 14, 2022
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: samialfattani (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /121 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.12MB] [CPU: ▼7.23ms] Passed 4 tests

An overview of server-side resources used by REGA Verifier
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.86 ▼0.6020.09 ▼15.68
Dashboard /wp-admin3.34 ▲0.0446.12 ▼5.11
Posts /wp-admin/edit.php3.39 ▲0.0447.63 ▲2.85
Add New Post /wp-admin/post-new.php5.92 ▲0.0487.81 ▼10.04
Media Library /wp-admin/upload.php3.26 ▲0.0436.51 ▲1.92
REGA /wp-admin/options-general.php?page=rega-verifier3.2328.76

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_rega_input_widget
widget_rega_status_widget
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for REGA Verifier
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,452 ▼29413.50 ▼0.882.98 ▲1.3816.73 ▼24.89
Dashboard /wp-admin2,212 ▲244.86 ▼1.03110.04 ▲10.8441.98 ▼1.16
Posts /wp-admin/edit.php2,098 ▲122.01 ▼0.0141.91 ▲7.7333.78 ▼0.45
Add New Post /wp-admin/post-new.php1,533 ▲523.16 ▲5.16628.82 ▲6.2069.64 ▲14.56
Media Library /wp-admin/upload.php1,397 ▲124.17 ▼0.0396.00 ▼1.1046.48 ▲3.88
REGA /wp-admin/options-general.php?page=rega-verifier8782.0522.8864.36

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_rega_status_widget
    • widget_theysaidso_widget
    • widget_rega_input_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/rega-verifier/downloadme.php
  • 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rega-verifier/rega-ajax-verifier.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rega-verifier/rega-ajax-updater.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/rega-verifier/downloadhook.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rega-verifier/rega-ajax-verifier.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/rega-verifier/template/testwp.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rega-verifier/load_jquery_and_bootstrap.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rega-verifier/rega-reset.php:45
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/rega-verifier/rega-hook.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rega-verifier/rega-widget-input.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rega-verifier/rega-settings.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

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
6 plugin tags: real state, buy, sell, landloard, house...

rega-verifier/index.php 92% from 13 tests

"REGA Verifier" version 0.151's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("rega-verifier.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected996 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP19320195938
Markdown217044
CSS24613
JavaScript1061

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods1890.00%
▷ Protected methods00.00%
▷ Private methods210.00%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
static/img/logo.png105.61KB34.99KB▼ 66.87%