Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼350.66ms] Passed 4 tests
Server-side resources used by Enquir3 Referral
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 40.28 ▼24.78 |
Dashboard /wp-admin | 3.06 ▲0.00 | 56.43 ▲6.72 |
Posts /wp-admin/edit.php | 3.11 ▼0.01 | 42.64 ▼19.81 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 100.78 ▼1,358.98 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 39.45 ▲0.95 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 1 new option
New WordPress options |
---|
eq3r_options |
Browser metrics Passed 4 tests
Checking browser requirements for Enquir3 Referral
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,678 ▲65 | 15.57 ▼0.07 | 10.05 ▼2.64 | 55.17 ▼9.49 |
Dashboard /wp-admin | 2,967 ▲33 | 5.92 ▼0.06 | 169.98 ▲5.55 | 150.03 ▲18.57 |
Posts /wp-admin/edit.php | 2,736 ▼3 | 2.86 ▲0.14 | 65.02 ▼10.20 | 109.50 ▲0.95 |
Add New Post /wp-admin/post-new.php | 1,615 ▼68 | 21.44 ▲5.28 | 325.07 ▼82.25 | 126.59 ▼14.62 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.13 ▲0.12 | 179.39 ▼6.33 | 133.96 ▲2.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 1 option in the database
- eq3r_options
Smoke tests 50% 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)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/enquir3-referrals/views/mail-referred-reward-body.tpl.php
- > /wp-content/plugins/enquir3-referrals/views/referral-step-two-form.tpl.php
- > /wp-content/plugins/enquir3-referrals/views/mail-referral-request-body.tpl.php
- > /wp-content/plugins/enquir3-referrals/views/voucher-redeem-confirmation-form.tpl.php
- > /wp-content/plugins/enquir3-referrals/views/mail-referrer-reward-body.tpl.php
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/enquir3-referrals/includes/class-eq3r-voucher-management-table.php on line 7
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/enquir3-referrals/includes/class-eq3r-voucher-management-table.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/enquir3-referrals/views/voucher-redeem-confirmation-form.tpl.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in /var/www/wordpress/wp-content/plugins/enquir3-referrals/includes/enquir3-referrals-settings.inc:6
- > PHP Notice
Undefined variable: vars in wp-content/plugins/enquir3-referrals/views/voucher-redeem-confirmation-form.tpl.php on line 5
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/enquir3-referrals/views/voucher-redeem-confirmation-form.tpl.php on line 5
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/enquir3-referrals/includes/class-eq3r-voucher-management-table.php on line 7
- > PHP Fatal error
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)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: referral feedback, testimonial
enquir3-referrals/enquir3-referrals.php Passed 13 tests
"Enquir3 Referral" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
25 characters long description:
Handle Enquir3 Referrals.
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
Success! There were no dangerous files found in this plugin1,096 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 110 | 239 | 689 |
Twig | 5 | 13 | 0 | 176 |
Pascal | 2 | 53 | 261 | 146 |
CSS | 2 | 9 | 5 | 50 |
JavaScript | 1 | 8 | 0 | 35 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 27 | 96.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.57% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin