Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼8.35ms] Passed 4 tests
This is a short check of server-side resources used by Coupon Grab by ClipNCrazy.com
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 42.48 ▲0.25 |
Dashboard /wp-admin | 3.40 ▲0.05 | 50.82 ▼14.52 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 49.80 ▼3.44 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 85.28 ▼15.69 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 39.98 ▲2.69 |
General /wp-admin/admin.php?page=cfeed-general | 3.26 | 31.85 |
HTML /wp-admin/admin.php?page=cfeed-html | 3.26 | 34.19 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_couponfeeder |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Coupon Grab by ClipNCrazy.com: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.72 ▲0.19 | 1.94 ▲0.31 | 45.11 ▼0.54 |
Dashboard /wp-admin | 2,206 ▲29 | 5.52 ▼0.14 | 97.65 ▼5.40 | 80.58 ▲30.24 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 1.97 ▼0.06 | 36.11 ▲0.73 | 30.43 ▼5.37 |
Add New Post /wp-admin/post-new.php | 1,564 ▲38 | 23.14 ▼0.02 | 714.01 ▲36.33 | 51.33 ▼11.40 |
Media Library /wp-admin/upload.php | 1,414 ▲14 | 4.17 ▼0.04 | 101.33 ▼14.99 | 91.01 ▲39.38 |
General /wp-admin/admin.php?page=cfeed-general | 959 | 2.00 | 22.93 | 28.45 |
HTML /wp-admin/admin.php?page=cfeed-html | 855 | 2.00 | 23.28 | 27.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_couponfeeder
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
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
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cfeed-html
- > Notice in wp-content/plugins/coupon-grab/coupongrab.php+476
Undefined index: action
- > GET request to /wp-admin/admin.php?page=cfeed-general
- > Notice in wp-content/plugins/coupon-grab/coupongrab.php+338
Undefined index: coupon_grab_now
- > GET request to /wp-admin/admin.php?page=cfeed-general
- > User deprecated in wp-includes/functions.php+5453
Function get_all_category_ids is deprecated since version 4.0.0! Use get_terms() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cfeed-html
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coupon-grab/coupongrab.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Coupon Grab in action!), #2 (General Options), #3 (Custom HTML Options)
coupon-grab/coupongrab.php 92% from 13 tests
The primary PHP file in "Coupon Grab by ClipNCrazy.com" version 1.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("coupon-grab.php" instead of "coupongrab.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected414 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 142 | 40 | 414 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 11.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 3.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 1 | 5.26% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
4 PNG files occupy 0.11MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 41.51KB | 19.73KB | ▼ 52.46% |
screenshot-3.png | 47.84KB | 21.78KB | ▼ 54.47% |
screenshot-1.png | 23.82KB | 12.96KB | ▼ 45.60% |
images/admin/red_feed.png | 0.89KB | 0.97KB | 0.00% |