Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼1.82ms] Passed 4 tests
Analyzing server-side resources used by CRYPTO / COUPON REDEEM
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 38.74 ▼1.03 |
Dashboard /wp-admin | 3.50 ▲0.19 | 54.60 ▲6.38 |
Posts /wp-admin/edit.php | 3.62 ▲0.25 | 47.59 ▲0.47 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 79.57 ▼7.74 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 35.98 ▲1.03 |
All Campaigns /wp-admin/edit.php?post_type=ccre-campaigns | 3.47 | 38.48 |
Settings /wp-admin/edit.php?post_type=ccre-campaigns&page=ccre-settings | 3.45 | 37.81 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
ccre_options |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
CRYPTO / COUPON REDEEM: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,040 ▲279 | 14.78 ▲0.18 | 5.59 ▲3.92 | 44.20 ▲7.96 |
Dashboard /wp-admin | 2,363 ▲185 | 6.15 ▲0.42 | 111.29 ▲12.97 | 42.93 ▼2.01 |
Posts /wp-admin/edit.php | 2,294 ▲197 | 3.43 ▲1.42 | 49.12 ▲9.23 | 32.50 ▼2.79 |
Add New Post /wp-admin/post-new.php | 1,553 ▲25 | 23.13 ▼0.32 | 666.52 ▼48.52 | 37.37 ▼26.29 |
Media Library /wp-admin/upload.php | 1,435 ▲32 | 4.13 ▼0.06 | 78.67 ▼20.27 | 43.72 ▼3.97 |
All Campaigns /wp-admin/edit.php?post_type=ccre-campaigns | 1,344 | 3.51 | 45.36 | 28.23 |
Settings /wp-admin/edit.php?post_type=ccre-campaigns&page=ccre-settings | 1,396 | 3.02 | 43.09 | 25.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- ccre_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ccre-campaigns&page=ccre-settings
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/crypto-coupon-redeem/crypto-coupon-redeem.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration Passed 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
3 plugin tags: ridime, crypto, coupon
crypto-coupon-redeem/crypto-coupon-redeem.php Passed 13 tests
This is the main PHP file of "CRYPTO / COUPON REDEEM" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
22 characters long description:
CRYPTO / COUPON REDEEM
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected2,073 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 347 | 139 | 1,573 |
CSS | 3 | 1 | 1 | 312 |
JavaScript | 3 | 55 | 19 | 188 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 3.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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 files were detected