Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/sleekstore/w9ss.php+52
Function create_function() is deprecated
Server metrics [RAM: ▼1.18MB] [CPU: ▼215.35ms] Passed 4 tests
Analyzing server-side resources used by sleekStore lite
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.30 ▼0.54 | 7.80 ▼27.36 |
Dashboard /wp-admin | 2.48 ▼0.58 | 10.47 ▼34.66 |
Posts /wp-admin/edit.php | 2.48 ▼0.63 | 9.10 ▼39.83 |
Add New Post /wp-admin/post-new.php | 2.48 ▼2.96 | 10.76 ▼756.08 |
Media Library /wp-admin/upload.php | 2.48 ▼0.53 | 9.21 ▼30.84 |
Inventory /wp-admin/admin.php?page=w9ss_admin_inventory | 2.48 | 9.51 |
Settings /wp-admin/admin.php?page=w9ss_admin_options | 2.48 | 10.31 |
Orders /wp-admin/admin.php?page=w9ss_admin_page | 2.48 | 9.56 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: 2 new tables, 2 new options
New tables |
---|
wp_w9ss_order |
wp_w9ss_item |
New WordPress options |
---|
w9ss_db_version |
widget_w9ss_cartwidget |
Browser metrics Passed 4 tests
A check of browser resources used by sleekStore lite
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,743 ▲147 | 15.98 ▼0.07 | 8.43 ▼2.26 | 47.03 ▼2.11 |
Dashboard /wp-admin | 3,006 ▲72 | 5.92 ▼0.09 | 146.12 ▼5.15 | 108.37 ▼2.61 |
Posts /wp-admin/edit.php | 2,778 ▲39 | 2.72 ▼0.00 | 62.47 ▼2.01 | 92.22 ▲1.44 |
Add New Post /wp-admin/post-new.php | 1,525 ▼147 | 18.67 ▼0.15 | 363.43 ▼14.00 | 115.91 ▲10.87 |
Media Library /wp-admin/upload.php | 1,772 ▼35 | 5.03 ▼0.02 | 151.21 ▲3.21 | 117.84 ▼5.54 |
Inventory /wp-admin/admin.php?page=w9ss_admin_inventory | 1,357 | 2.22 | 57.80 | 80.07 |
Settings /wp-admin/admin.php?page=w9ss_admin_options | 1,357 | 2.28 | 61.66 | 92.48 |
Orders /wp-admin/admin.php?page=w9ss_admin_page | 1,354 | 2.18 | 52.27 | 78.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/sleekstore/w9ss.php+52
Function create_function() is deprecated
- The uninstall procedure failed, leaving 2 tables in the database
- wp_w9ss_item
- wp_w9ss_order
- The uninstall procedure has failed, leaving 2 options in the database
- widget_w9ss_cartwidget
- w9ss_db_version
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=w9ss_admin_page
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/sleekstore/w9ss.php+52
Function create_function() is deprecated
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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/sleekstore/w9ss.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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
These attributes need your attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
- Screenshots: Add images for these screenshots: #1 (Settings panel), #2 (sleekStore product settings), #3 (Order statues)
sleekstore/w9ss.php 92% from 13 tests
The main PHP file in "sleekStore lite" ver. 2.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("sleekstore.php" instead of "w9ss.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin3,411 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 327 | 23 | 2,742 |
PO File | 1 | 264 | 394 | 567 |
CSS | 1 | 23 | 0 | 102 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 18.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 125 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 124 | 99.20% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.80% |
Functions | 34 | |
▷ Named functions | 34 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin