Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼14.46ms] Passed 4 tests
Analyzing server-side resources used by Simple Coupon Import
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.98 ▼6.11 |
Dashboard /wp-admin | 3.32 ▼0.03 | 46.77 ▼17.39 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.88 ▼3.34 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.74 ▼28.84 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.22 ▼5.50 |
From file csv /wp-admin/admin.php?page=coupon-import | 3.25 | 34.01 |
From connect API /wp-admin/admin.php?page=coupon-import-api | 3.26 | 35.67 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Coupon Import
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.53 ▲0.18 | 1.74 ▼0.37 | 43.64 ▲3.56 |
Dashboard /wp-admin | 2,225 ▲48 | 5.57 ▲0.00 | 95.81 ▲5.66 | 38.66 ▼7.82 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.01 ▼0.03 | 39.51 ▼0.22 | 34.58 ▼5.84 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.15 ▲0.12 | 657.46 ▼10.39 | 55.87 ▼1.72 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.21 ▲0.03 | 101.65 ▼12.18 | 43.77 ▼2.59 |
From file csv /wp-admin/admin.php?page=coupon-import | 873 | 2.03 | 24.04 | 33.50 |
From connect API /wp-admin/admin.php?page=coupon-import-api | 970 | 2.00 | 23.45 | 29.10 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/simple-coupon-import/simple-coupon-import.php
- 53× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/simple-coupon-import/vendor/guzzlehttp/psr7/src/NoSeekStream.php:12
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Cookie\\CookieJarInterface' not found in wp-content/plugins/simple-coupon-import/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php:11
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/simple-coupon-import/vendor/guzzlehttp/promises/src/Coroutine.php:45
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/simple-coupon-import/vendor/guzzlehttp/promises/src/TaskQueue.php:14
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/simple-coupon-import/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/simple-coupon-import/vendor/guzzlehttp/psr7/src/PumpStream.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/simple-coupon-import/vendor/guzzlehttp/psr7/src/LimitStream.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/simple-coupon-import/vendor/psr/http-message/src/ResponseInterface.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/simple-coupon-import/vendor/guzzlehttp/psr7/src/BufferStream.php:17
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/simple-coupon-import/vendor/guzzlehttp/promises/src/RejectedPromise.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
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
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #1, #2 in simple-coupon-import/assets to your readme.txt
simple-coupon-import/simple-coupon-import.php 92% from 13 tests
The main file in "Simple Coupon Import" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin13,654 lines of code in 155 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 126 | 2,064 | 5,717 | 9,330 |
Markdown | 14 | 1,160 | 0 | 3,497 |
JSON | 12 | 0 | 0 | 807 |
make | 1 | 4 | 0 | 9 |
YAML | 1 | 0 | 0 | 7 |
CSS | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 26 | |
Traits | 3 | |
Classes | 83 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 83 | 100.00% |
▷ Final classes | 34 | 40.96% |
Methods | 755 | |
▷ Static methods | 139 | 18.41% |
▷ Public methods | 641 | 84.90% |
▷ Protected methods | 4 | 0.53% |
▷ Private methods | 110 | 14.57% |
Functions | 127 | |
▷ Named functions | 38 | 29.92% |
▷ Anonymous functions | 89 | 70.08% |
Constants | 64 | |
▷ Global constants | 1 | 1.56% |
▷ Class constants | 63 | 98.44% |
▷ Public constants | 52 | 82.54% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up 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 |
public/img/icon.png | 0.54KB | 0.47KB | ▼ 13.11% |