Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼2.61ms] Passed 4 tests
Analyzing server-side resources used by WP LOYALTY by AD5
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 43.91 ▲2.98 |
Dashboard /wp-admin | 3.41 ▲0.11 | 53.03 ▲4.54 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 54.40 ▲9.13 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 88.53 ▼17.18 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 37.09 ▼0.78 |
Server storage [IO: ▲1.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for WP LOYALTY by AD5
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,960 ▲199 | 14.35 ▲0.07 | 2.53 ▲0.76 | 44.30 ▲0.97 |
Dashboard /wp-admin | 2,218 ▲38 | 5.54 ▼0.07 | 99.69 ▲13.00 | 40.95 ▼1.42 |
Posts /wp-admin/edit.php | 2,120 ▲23 | 1.98 ▼0.02 | 36.10 ▼0.76 | 34.94 ▼7.52 |
Add New Post /wp-admin/post-new.php | 1,693 ▲158 | 21.33 ▲3.24 | 682.41 ▲41.62 | 63.12 ▼14.98 |
Media Library /wp-admin/upload.php | 1,426 ▲23 | 4.18 ▼0.06 | 104.65 ▲1.61 | 45.93 ▲0.28 |
Uninstaller [IO: ▲1.11MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The plugin did not uninstall successfully, leaving 18 files (1.11MB) in the plugin directory
- (new file) includes/class-ad5-colors.php
- (new file) ad5-loyalty.php
- (new file) languages/ad5-loyalty-ja.po
- (new file) includes/class-ad5-loyalty-front.php
- (new file) includes/class-ad5-auth.php
- (new file) includes/class-ad5-form.php
- (new file) includes/class-ad5-user-manager.php
- (new file) includes/class-ad5-loyalty-admin.php
- (new file) languages/ad5-loyalty-ja.mo
- (new file) readme.txt
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Please fix the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ad5-loyalty/ad5-loyalty.php:13
- > PHP Fatal error
Uncaught Error: Class 'AD5_Loyalty_Admin' not found in wp-content/plugins/ad5-loyalty/template/admin-option.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/ad5-loyalty/template/modal.php:2
- > PHP Fatal error
Uncaught Error: Class 'AD5_Loyalty_Admin' not found in wp-content/plugins/ad5-loyalty/template/admin-docs.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Donate link: Invalid url: ""
ad5-loyalty/ad5-loyalty.php 92% from 13 tests
The entry point to "WP LOYALTY by AD5" version 1.0.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 184 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,500 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 182 | 156 | 1,395 |
PO File | 1 | 54 | 0 | 104 |
JavaScript | 1 | 0 | 9 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 26.33 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 92 | |
▷ Static methods | 5 | 5.43% |
▷ Public methods | 85 | 92.39% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 7.61% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 25 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 25 | 100.00% |
▷ Public constants | 25 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 1.02MB with 0.71MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 275.54KB | 85.52KB | ▼ 68.96% |
screenshot-1.png | 144.55KB | 43.96KB | ▼ 69.59% |
screenshot-2.png | 346.70KB | 103.57KB | ▼ 70.13% |
screenshot-4.png | 277.90KB | 86.28KB | ▼ 68.95% |