Benchmarks
Plugin footprint 83% 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.09MB] [CPU: ▼2.71ms] Passed 4 tests
Analyzing server-side resources used by GetSale Popup Tool
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 43.83 ▼2.24 |
Dashboard /wp-admin | 3.40 ▲0.09 | 52.17 ▼3.06 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 50.78 ▲1.15 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 89.87 ▼6.68 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 40.94 ▲3.27 |
GetSale /wp-admin/options-general.php?page=getsale_settings | 3.30 | 35.89 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
getsale_option_name |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GetSale Popup Tool
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲27 | 13.64 ▲0.59 | 1.67 ▼0.07 | 39.40 ▼2.40 |
Dashboard /wp-admin | 2,233 ▲27 | 5.84 ▲0.01 | 103.55 ▼5.41 | 40.20 ▲2.77 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.00 ▼0.02 | 35.30 ▲0.20 | 36.80 ▲1.35 |
Add New Post /wp-admin/post-new.php | 1,537 ▲2 | 23.09 ▼0.14 | 626.84 ▼64.98 | 58.97 ▲6.73 |
Media Library /wp-admin/upload.php | 1,412 ▲27 | 4.26 ▲0.05 | 94.39 ▼21.43 | 41.08 ▼6.51 |
GetSale /wp-admin/options-general.php?page=getsale_settings | 862 | 2.11 | 26.77 | 32.14 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/getsale-popup-tool/getsale_options.php:199
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/getsale-popup-tool/getsale_options.php:199
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=getsale_settings
- > Network (severe)
getsale-popup-tooljs/admin.js?ver=6.3.1 - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (GetSale Popup Tool plugin), #2 (Widget list in https://getsale.io account), #3 (Widget settings in https://getsale.io account)
getsale-popup-tool/getsale.php 85% from 13 tests
The primary PHP file in "GetSale Popup Tool" version 1.0.5 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("getsale-popup-tool.php" instead of "getsale.php")
- Requires at least: Required version must match the one declared in readme.txt ("3.0.1" instead of "4.1")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin683 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 58 | 13 | 330 |
PO File | 3 | 73 | 78 | 183 |
JavaScript | 4 | 5 | 0 | 140 |
CSS | 1 | 2 | 0 | 19 |
SVG | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/ok.png | 0.52KB | 0.51KB | ▼ 2.06% |