Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼6.29ms] Passed 4 tests
Server-side resources used by OMS Coupon
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 37.02 ▼3.09 |
Dashboard /wp-admin | 3.42 ▲0.11 | 45.88 ▼1.53 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 46.25 ▼1.72 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 83.12 ▼18.81 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 34.93 ▲4.31 |
Coupon List /wp-admin/admin.php?page=oms-coupon/public/partials/coupon-public-display.php | 3.37 | 35.56 |
Coupon Manager /wp-admin/admin.php?page=oms-coupon/admin/partials/coupon-admin-display.php | 3.38 | 34.57 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 30 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_oms_coupons_user |
wp_oms_coupons |
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
oms_coupon_version |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for OMS Coupon
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,947 ▲201 | 13.66 ▼0.71 | 6.08 ▲4.47 | 39.79 ▲0.07 |
Dashboard /wp-admin | 2,243 ▲55 | 5.88 ▲0.82 | 96.99 ▼0.31 | 39.06 ▼5.14 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.03 ▲0.02 | 36.09 ▼3.72 | 33.93 ▼2.31 |
Add New Post /wp-admin/post-new.php | 1,543 ▲29 | 23.13 ▲5.44 | 619.10 ▼53.10 | 51.96 ▼2.41 |
Media Library /wp-admin/upload.php | 1,419 ▲28 | 4.23 ▼0.03 | 94.55 ▼4.11 | 40.36 ▼2.68 |
Coupon List /wp-admin/admin.php?page=oms-coupon/public/partials/coupon-public-display.php | 1,020 | 1.76 | 23.81 | 28.22 |
Coupon Manager /wp-admin/admin.php?page=oms-coupon/admin/partials/coupon-admin-display.php | 1,313 | 1.69 | 24.91 | 39.15 |
Uninstaller [IO: ▲0.14MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following itemsThe plugin did not uninstall successfully, leaving 2 tables in the database Zombie WordPress options were found after uninstall: 7 options
- Incomplete uninstall procedure, leaving 30 files (0.14MB) in the plugin directory
- (new file) admin/partials/coupon-admin-table.php
- (new file) admin/class-coupon-admin.php
- (new file) LICENSE.txt
- (new file) includes/class-coupon-activator.php
- (new file) coupon.php
- (new file) includes/class-coupon-deactivator.php
- (new file) admin/css/coupon-admin.css
- (new file) admin/index.php
- (new file) admin/partials/coupon-admin-display.php
- (new file) admin/js/coupon-admin.js
- ...
- wp_oms_coupons
- wp_oms_coupons_user
- theysaidso_admin_options
- oms_coupon_version
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/oms-coupon/admin/partials/coupon-admin-table.php:29
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/oms-coupon/public/partials/coupon-public-table.php:29
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/oms-coupon/public/partials/coupon-public-table.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function tz_strtodate() in wp-content/plugins/oms-coupon/admin/partials/coupon-admin-display.php:16
- > 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
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: affiliate, deal, deals, coupons, coupon
oms-coupon/coupon.php 92% from 13 tests
The main PHP script in "OMS Coupon" version 1.0.2 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("oms-coupon.php" instead of "coupon.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 plugin1,719 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 219 | 1,148 | 1,191 |
JavaScript | 3 | 14 | 0 | 187 |
PO File | 2 | 67 | 102 | 177 |
CSS | 2 | 25 | 8 | 164 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 15.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 8 | 12.90% |
▷ Public methods | 33 | 53.23% |
▷ Protected methods | 18 | 29.03% |
▷ Private methods | 11 | 17.74% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin