Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/auto-import-coupons-from-vcommission/wp-vcommission-coupons.php+25
Undefined variable: api_key
Server metrics [RAM: ▲0.00MB] [CPU: ▲0.52ms] Passed 4 tests
An overview of server-side resources used by Auto Import Coupons from vcommission
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 43.21 ▲2.65 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.21 ▼1.33 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.98 ▲1.02 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.81 ▲0.78 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.22 ▲1.59 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Auto Import Coupons from vcommission
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.26 ▼1.32 | 1.73 ▼0.23 | 43.02 ▼0.63 |
Dashboard /wp-admin | 2,206 ▲18 | 5.83 ▲0.75 | 96.70 ▼9.56 | 38.15 ▼5.82 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.04 ▼0.01 | 41.51 ▼1.43 | 35.42 ▼0.00 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.26 ▲5.72 | 582.81 ▼15.51 | 60.18 ▲4.53 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.17 ▼0.09 | 93.54 ▼6.41 | 41.20 ▼0.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/auto-import-coupons-from-vcommission/includes/wp_vc-settings.php:116
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/auto-import-coupons-from-vcommission/includes/wp_vc-function.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
6 plugin tags: deal, affiliate, coupons, vcommission coupon, deals...
auto-import-coupons-from-vcommission/wp-vcommission-coupons.php 92% from 13 tests
This is the main PHP file of "Auto Import Coupons from vcommission" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("auto-import-coupons-from-vcommission.php" instead of "wp-vcommission-coupons.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
Good job! No executable or dangerous file extensions detected222 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 44 | 24 | 222 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected