Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/countdown-timer-abt/countdown-timer-abt.php+341
Non-static method ABT_Countdown_Timer::singleton() should not be called statically
Server metrics [RAM: ▼1.84MB] [CPU: ▼53.69ms] Passed 4 tests
An overview of server-side resources used by Countdown Timer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.15 ▼1.32 | 5.22 ▼37.52 |
Dashboard /wp-admin | 2.17 ▼1.14 | 6.65 ▼46.48 |
Posts /wp-admin/edit.php | 2.17 ▼1.19 | 5.25 ▼43.57 |
Add New Post /wp-admin/post-new.php | 2.17 ▼3.72 | 5.44 ▼87.17 |
Media Library /wp-admin/upload.php | 2.17 ▼1.06 | 6.93 ▼25.23 |
Countdown /wp-admin/admin.php?page=abt_countdown_timer_options | 2.17 | 6.07 |
Help & Support /wp-admin/admin.php?page=abt_countdown_timer_help | 2.17 | 7.04 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
abt_countdown_timer_options |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Countdown Timer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.30 ▼0.03 | 1.81 ▼0.05 | 46.95 ▲2.98 |
Dashboard /wp-admin | 2,221 ▲41 | 5.54 ▼0.17 | 88.34 ▼2.91 | 88.13 ▲48.56 |
Posts /wp-admin/edit.php | 2,132 ▲29 | 1.98 ▼0.03 | 36.00 ▼6.43 | 34.60 ▼2.07 |
Add New Post /wp-admin/post-new.php | 1,701 ▲156 | 22.52 ▼0.56 | 655.68 ▼54.99 | 46.74 ▼12.24 |
Media Library /wp-admin/upload.php | 1,423 ▲20 | 4.27 ▼0.00 | 100.17 ▼2.84 | 78.25 ▲36.32 |
Countdown /wp-admin/admin.php?page=abt_countdown_timer_options | 951 | 2.02 | 27.52 | 37.17 |
Help & Support /wp-admin/admin.php?page=abt_countdown_timer_help | 1,044 | 2.01 | 22.30 | 32.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/countdown-timer-abt/countdown-timer-abt.php+341
Non-static method ABT_Countdown_Timer::singleton() should not be called statically
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=abt_countdown_timer_help
- > Deprecated in wp-content/plugins/countdown-timer-abt/countdown-timer-abt.php+341
Non-static method ABT_Countdown_Timer::singleton() should not be called statically
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
Please take a closer look at the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/countdown-timer-abt/countdown-timer-abt.php:101
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/countdown-timer-abt/options.php:45
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/countdown-timer-abt/help.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Admin options page with templates, placeholders), #2 (Usage example - note that "explicit" options use single-quotes to allow double-quotes in HTML), #3 (Output example - with Firebug showing HTML)
countdown-timer-abt/countdown-timer-abt.php Passed 13 tests
The main PHP script in "Countdown Timer" version 0.7 is automatically included on every request by WordPress
33 characters long description:
Provides a simple countdown timer
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
Success! There were no dangerous files found in this plugin450 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 145 | 205 | 450 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 17 | |
▷ Static methods | 2 | 11.76% |
▷ Public methods | 14 | 82.35% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 17.65% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.10MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 29.91KB | 14.65KB | ▼ 51.04% |
i_admin-icon.png | 0.90KB | 0.97KB | 0.00% |
screenshot-2.png | 18.57KB | 10.29KB | ▼ 44.58% |
screenshot-1.png | 51.06KB | 28.98KB | ▼ 43.24% |