Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.73ms] Passed 4 tests
Analyzing server-side resources used by Liffery
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 36.92 ▼4.29 |
Dashboard /wp-admin | 3.36 ▲0.05 | 47.44 ▲0.64 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 47.51 ▼2.90 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 84.10 ▼16.35 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.08 ▲3.05 |
Liffery /wp-admin/options-general.php?page=liffery | 3.26 | 30.71 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Liffery
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲80 | 13.47 ▼0.93 | 8.44 ▲6.20 | 37.15 ▼4.97 |
Dashboard /wp-admin | 2,217 ▲29 | 5.87 ▲0.96 | 95.47 ▼8.95 | 43.30 ▼1.54 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.02 ▲0.01 | 40.85 ▲1.10 | 35.78 ▼0.40 |
Add New Post /wp-admin/post-new.php | 1,521 ▼0 | 23.17 ▲0.13 | 664.30 ▲33.72 | 53.81 ▼1.36 |
Media Library /wp-admin/upload.php | 1,393 ▲2 | 4.17 ▼0.01 | 95.92 ▼8.53 | 42.85 ▼1.54 |
Liffery /wp-admin/options-general.php?page=liffery | 812 | 2.02 | 26.01 | 33.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=liffery
- > Notice in wp-content/plugins/liffery/admin/partials/liffery-sidebar-admin-display.php+11
Undefined index: action
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/liffery/admin/partials/tabSettings.php
- > /wp-content/plugins/liffery/admin/partials/tabStatus.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: validated in wp-content/plugins/liffery/admin/partials/tabStatus.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/liffery/admin/partials/liffery-sidebar-admin-display.php:10
- > PHP Notice
Undefined variable: verifiedJustNow in wp-content/plugins/liffery/admin/partials/tabSettings.php on line 1
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== liffery ===
)
liffery/liffery.php Passed 13 tests
This is the main PHP file of "Liffery" version 1.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
111 characters long description:
The official Liffery Wordpress/ Woocommerce Plugin - Make sure you verify the installation on the settings page
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
There were no executable files found in this plugin412 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 128 | 521 | 391 |
JavaScript | 1 | 2 | 4 | 14 |
CSS | 1 | 2 | 5 | 7 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 19 | 76.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 24.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/liffery.png | 0.44KB | 0.29KB | ▼ 35.24% |