Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.22ms] Passed 4 tests
This is a short check of server-side resources used by Sales Cheater
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 67.14 ▲19.95 |
Dashboard /wp-admin | 3.33 ▼0.01 | 51.12 ▼10.29 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 48.02 ▼3.42 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 85.55 ▼14.88 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 42.19 ▲3.71 |
Maintainance /wp-admin/admin.php?page=sales-cheater/salescheater-maintainance.php | 3.23 | 30.57 |
Uninstall /wp-admin/admin.php?page=sales-cheater/salescheater-uninstall.php | 3.23 | 34.02 |
Settings /wp-admin/admin.php?page=sales-cheater/salescheater-settings.php | 3.26 | 31.57 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: 1 new table, 12 new options
New tables |
---|
wp_salescheater |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
sc_minute |
db_upgraded |
sc_min |
widget_theysaidso_widget |
sc_template_text |
sc_autodelentries |
sc_max |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Sales Cheater
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲70 | 14.20 ▼0.15 | 1.86 ▲0.02 | 46.56 ▼4.18 |
Dashboard /wp-admin | 2,223 ▲49 | 5.62 ▲0.01 | 82.85 ▼11.68 | 39.47 ▼0.68 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 1.99 ▼0.01 | 35.53 ▲1.02 | 34.13 ▼3.47 |
Add New Post /wp-admin/post-new.php | 1,553 ▲25 | 23.24 ▲0.19 | 664.91 ▼39.36 | 58.81 ▲5.17 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.16 ▲0.01 | 96.92 ▼12.51 | 44.30 ▼5.11 |
Maintainance /wp-admin/admin.php?page=sales-cheater/salescheater-maintainance.php | 860 | 2.03 | 25.38 | 28.72 |
Uninstall /wp-admin/admin.php?page=sales-cheater/salescheater-uninstall.php | 905 | 1.99 | 22.00 | 26.02 |
Settings /wp-admin/admin.php?page=sales-cheater/salescheater-settings.php | 916 | 1.99 | 22.47 | 24.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie tables detected upon uninstall: 1 table
- wp_salescheater
- This plugin did not uninstall successfully, leaving 12 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- sc_template_text
- sc_autodelentries
- can_compress_scripts
- sc_max
- sc_minute
- db_upgraded
- sc_min
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=sales-cheater/salescheater-maintainance.php
- > Notice in wp-content/plugins/sales-cheater/salescheater-maintainance.php+24
Undefined index: sc_dbdelete
- > GET request to /wp-admin/admin.php?page=sales-cheater/salescheater-maintainance.php
- > Notice in wp-content/plugins/sales-cheater/salescheater-maintainance.php+30
Undefined index: sc_saveauto
- > GET request to /wp-admin/admin.php?page=sales-cheater/salescheater-uninstall.php
- > Notice in wp-content/plugins/sales-cheater/salescheater-uninstall.php+27
Undefined index: mode
- > GET request to /wp-admin/admin.php?page=sales-cheater/salescheater-settings.php
- > Notice in wp-content/plugins/sales-cheater/salescheater-settings.php+24
Undefined index: sc_submit
- > GET request to /wp-admin/admin.php?page=sales-cheater/salescheater-settings.php
- > Notice in wp-content/plugins/sales-cheater/salescheater-settings.php+127
Undefined index: evaluate
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Creating default object from empty value in wp-content/plugins/sales-cheater/salescheater.php on line 29
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/sales-cheater/salescheater-settings.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/sales-cheater/salescheater-uninstall.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sales-cheater/salescheater.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/sales-cheater/salescheater-maintainance.php:19
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/sales-cheater/salescheater.php on line 29
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% 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 need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Admin - Settings Menu), #2 (Admin - Maintainance Menu), #3 (Admin - Unintstall Menu), #4 (How to insert code into an article), #5 (Output Example)
sales-cheater/salescheater.php 92% from 13 tests
The main PHP file in "Sales Cheater" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("sales-cheater.php" instead of "salescheater.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
Everything looks great! No dangerous files found in this plugin404 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 81 | 89 | 404 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
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 | 3 | |
▷ Named functions | 3 | 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
5 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 10.20KB | 4.86KB | ▼ 52.37% |
screenshot-3.png | 16.38KB | 6.33KB | ▼ 61.36% |
screenshot-1.png | 22.10KB | 6.66KB | ▼ 69.88% |
screenshot-5.png | 2.83KB | 0.86KB | ▼ 69.43% |
screenshot-2.png | 11.48KB | 4.07KB | ▼ 64.51% |