78% referall-123

Code Review | Referall 123

WordPress plugin Referall 123 scored78%from 54 tests.

About plugin

  • Plugin page: referall-123
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7.2-5.7.2
  • WordPress version: 6.3.1
  • First release: May 26, 2021
  • Latest release: Jun 16, 2021
  • Number of updates: 4
  • Update frequency: every 5.3 days
  • Top authors: aleksandrposs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /346 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.05ms] Passed 4 tests

Analyzing server-side resources used by Referall 123
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0246.41 ▼2.25
Dashboard /wp-admin3.33 ▲0.0349.97 ▼2.96
Posts /wp-admin/edit.php3.39 ▲0.0348.27 ▼22.03
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.36 ▲3.05
Media Library /wp-admin/upload.php3.26 ▲0.0363.73 ▲29.71
My referall link /wp-admin/index.php?page=wpdocs-unique-identifier3.2231.30
List referalls /wp-admin/index.php?page=List-referalls3.2031.89

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

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

Browser metrics Passed 4 tests

Referall 123: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6214.48 ▲0.081.91 ▼0.0140.75 ▼2.93
Dashboard /wp-admin2,214 ▲325.89 ▲0.08106.32 ▼1.6943.64 ▼0.10
Posts /wp-admin/edit.php2,097 ▲52.01 ▼0.0139.12 ▼0.6933.92 ▼4.10
Add New Post /wp-admin/post-new.php1,519 ▼017.49 ▼5.79682.18 ▲72.6651.68 ▲3.41
Media Library /wp-admin/upload.php1,390 ▲84.23 ▲0.07101.05 ▼4.8446.40 ▲0.96
My referall link /wp-admin/index.php?page=wpdocs-unique-identifier7752.0224.8625.78
List referalls /wp-admin/index.php?page=List-referalls7881.9926.4325.59

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/index.php?page=List-referalls
    • > Notice in wp-content/plugins/referall-123/index.php+91
    Undefined index: db_ref_min
    • > GET request to /wp-admin/index.php?page=List-referalls
    • > Notice in wp-content/plugins/referall-123/index.php+92
    Undefined index: db_ref_max
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/index.php?page=List-referalls
    • > Notice in wp-content/plugins/referall-123/index.php+150
    Undefined variable: db_ref_min1
    • > GET request to /wp-admin/index.php?page=List-referalls
    • > Notice in wp-content/plugins/referall-123/index.php+150
    Undefined variable: db_ref_max1
    • > GET request to /wp-admin/index.php?page=List-referalls
    • > Notice in wp-content/plugins/referall-123/index.php+155
    Undefined variable: db_ref_min2

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/referall-123/index.php:26

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 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === referall-123 === )
The official readme.txt is a good inspiration

referall-123/index.php 92% from 13 tests

The main PHP file in "Referall 123" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("referall-123.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin133 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11613133

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions7
▷ Named functions7100.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