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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 46.41 ▼2.25 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.97 ▼2.96 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.27 ▼22.03 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 93.36 ▲3.05 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 63.73 ▲29.71 |
My referall link /wp-admin/index.php?page=wpdocs-unique-identifier | 3.22 | 31.30 |
List referalls /wp-admin/index.php?page=List-referalls | 3.20 | 31.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 14.48 ▲0.08 | 1.91 ▼0.01 | 40.75 ▼2.93 |
Dashboard /wp-admin | 2,214 ▲32 | 5.89 ▲0.08 | 106.32 ▼1.69 | 43.64 ▼0.10 |
Posts /wp-admin/edit.php | 2,097 ▲5 | 2.01 ▼0.01 | 39.12 ▼0.69 | 33.92 ▼4.10 |
Add New Post /wp-admin/post-new.php | 1,519 ▼0 | 17.49 ▼5.79 | 682.18 ▲72.66 | 51.68 ▲3.41 |
Media Library /wp-admin/upload.php | 1,390 ▲8 | 4.23 ▲0.07 | 101.05 ▼4.84 | 46.40 ▲0.96 |
My referall link /wp-admin/index.php?page=wpdocs-unique-identifier | 775 | 2.02 | 24.86 | 25.78 |
List referalls /wp-admin/index.php?page=List-referalls | 788 | 1.99 | 26.43 | 25.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
- > PHP Fatal error
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 ===
)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 16 | 13 | 133 |
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 code | 0.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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