Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/sdi-scarcity-timer/includes/class-campaign.php+200
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▼1.87MB] [CPU: ▼58.81ms] Passed 4 tests
Server-side resources used by SDI Scarcity Timer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.12 ▼1.34 | 5.69 ▼36.02 |
Dashboard /wp-admin | 2.14 ▼1.17 | 6.98 ▼52.56 |
Posts /wp-admin/edit.php | 2.14 ▼1.22 | 7.14 ▼48.99 |
Add New Post /wp-admin/post-new.php | 2.14 ▼3.75 | 6.57 ▼97.65 |
Media Library /wp-admin/upload.php | 2.14 ▼1.09 | 6.99 ▼30.42 |
New Campaign /wp-admin/admin.php?page=sdi-scarcity-new | 2.14 | 6.40 |
Settings /wp-admin/admin.php?page=sdi-scarcity-settings | 2.14 | 7.24 |
SDI Scarcity /wp-admin/admin.php?page=sdi-scarcity | 2.14 | 7.10 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 27 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_sdi_scarcity_timer_users |
wp_sdi_scarcity_timer |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by SDI Scarcity Timer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲123 | 14.74 ▲0.36 | 2.03 ▲0.09 | 39.55 ▼12.57 |
Dashboard /wp-admin | 2,235 ▲50 | 4.81 ▼1.04 | 108.87 ▼14.26 | 38.55 ▼12.98 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 2.02 ▲0.01 | 43.63 ▲4.85 | 35.39 ▲1.80 |
Add New Post /wp-admin/post-new.php | 1,552 ▲19 | 23.21 ▼0.08 | 656.27 ▼9.44 | 104.75 ▲47.49 |
Media Library /wp-admin/upload.php | 1,417 ▲26 | 4.25 ▼0.03 | 112.24 ▲4.08 | 45.64 ▲1.65 |
New Campaign /wp-admin/admin.php?page=sdi-scarcity-new | 1,055 | 1.94 | 31.50 | 36.61 |
Settings /wp-admin/admin.php?page=sdi-scarcity-settings | 799 | 1.85 | 31.83 | 27.29 |
SDI Scarcity /wp-admin/admin.php?page=sdi-scarcity | 814 | 1.84 | 28.53 | 27.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/sdi-scarcity-timer/includes/class-campaign.php+200
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_sdi_scarcity_timer
- wp_sdi_scarcity_timer_users
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sdi-scarcity
- > Deprecated in wp-content/plugins/sdi-scarcity-timer/includes/class-campaign.php+200
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
SRP 0% 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
- 7× PHP files output text when accessed directly:
- > /wp-content/plugins/sdi-scarcity-timer/admin/top.php
- > /wp-content/plugins/sdi-scarcity-timer/templates/ultimate/timer.php
- > /wp-content/plugins/sdi-scarcity-timer/admin/elements/campaign-form.php
- > /wp-content/plugins/sdi-scarcity-timer/templates/plain/timer.php
- > /wp-content/plugins/sdi-scarcity-timer/admin/index.php
- > /wp-content/plugins/sdi-scarcity-timer/templates/military/timer.php
- > /wp-content/plugins/sdi-scarcity-timer/templates/sports/timer.php
- 38× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: headline_placement in wp-content/plugins/sdi-scarcity-timer/templates/military/timer.php on line 29
- > PHP Notice
Undefined variable: timerEnd in wp-content/plugins/sdi-scarcity-timer/templates/military/timer.php on line 4
- > PHP Notice
Undefined variable: headline_placement in wp-content/plugins/sdi-scarcity-timer/templates/plain/timer.php on line 14
- > PHP Notice
Undefined variable: headline_placement in wp-content/plugins/sdi-scarcity-timer/templates/ultimate/timer.php on line 9
- > PHP Notice
Undefined variable: timerStart in wp-content/plugins/sdi-scarcity-timer/templates/ultimate/timer.php on line 3
- > PHP Notice
Undefined variable: campaignId in wp-content/plugins/sdi-scarcity-timer/templates/ultimate/timer.php on line 2
- > PHP Notice
Undefined variable: headline_placement in wp-content/plugins/sdi-scarcity-timer/templates/plain/timer.php on line 14
- > PHP Notice
Undefined variable: timerEnd in wp-content/plugins/sdi-scarcity-timer/templates/ultimate/timer.php on line 4
- > PHP Notice
Undefined variable: timerStart in wp-content/plugins/sdi-scarcity-timer/templates/sports/timer.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/sdi-scarcity-timer/includes/bootstrap.php:10
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sdi-scarcity
- > Network (severe)
wp-content/plugins/sdi-scarcity/admin/css/style.css?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: product timer, scarcity, timer
sdi-scarcity-timer/wp-sdi-scarcity.php 77% from 13 tests
"SDI Scarcity Timer" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sdi-scarcity-timer.php" instead of "wp-sdi-scarcity.php")
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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 plugin837 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 110 | 165 | 664 |
CSS | 2 | 4 | 4 | 135 |
JavaScript | 1 | 13 | 10 | 38 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 9.25 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 27 | |
▷ Static methods | 17 | 62.96% |
▷ Public methods | 27 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 9 | 56.25% |
▷ Anonymous functions | 7 | 43.75% |
Constants | 5 | |
▷ Global constants | 5 | 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
PNG images were not found in this plugin