Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.11ms] Passed 4 tests
An overview of server-side resources used by Tim Hortons Rim Diary
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.24 ▲0.83 |
Dashboard /wp-admin | 3.35 ▲0.05 | 48.76 ▲1.64 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 45.82 ▼1.61 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 80.83 ▼7.14 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 34.37 ▼4.50 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_rim-diary |
Browser metrics Passed 4 tests
Checking browser requirements for Tim Hortons Rim Diary
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲72 | 14.80 ▲0.42 | 1.78 ▲0.04 | 46.85 ▲1.60 |
Dashboard /wp-admin | 2,222 ▲34 | 5.86 ▲0.05 | 96.45 ▼19.82 | 37.44 ▼5.61 |
Posts /wp-admin/edit.php | 2,108 ▲22 | 1.99 ▼0.06 | 34.63 ▼1.50 | 30.13 ▼6.07 |
Add New Post /wp-admin/post-new.php | 1,551 ▲18 | 23.43 ▲0.10 | 672.99 ▲4.68 | 49.72 ▼8.97 |
Media Library /wp-admin/upload.php | 1,407 ▲22 | 4.28 ▲0.08 | 95.49 ▼10.25 | 43.71 ▼3.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_rim-diary
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
Please fix the following
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/rim-diary/views/admin/rimdiaryadminview.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rim-diary/core-plugin.php:82
- > PHP Notice
Undefined variable: before_widget in wp-content/plugins/rim-diary/views/widgetview.php on line 1
- > PHP Notice
Undefined variable: winnings in wp-content/plugins/rim-diary/views/admin/rimdiaryadminview.php on line 8
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/rim-diary/views/admin/rimdiaryadminview.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/rim-diary/plugin.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rim-diary/admin-plugin.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/rim-diary/views/widgetview.php:7
- > 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
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: coffee, tim hortons, roll up the rim to win
rim-diary/plugin.php 92% from 13 tests
The main PHP file in "Tim Hortons Rim Diary" ver. 1.0.18 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("rim-diary.php" instead of "plugin.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
No dangerous file extensions were detected281 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 50 | 28 | 172 |
PO File | 1 | 14 | 59 | 55 |
CSS | 1 | 11 | 0 | 54 |
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 | 4.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 15 | 78.95% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 compressed PNG files occupy 0.21MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/images/prize-donut.png | 16.41KB | 16.45KB | 0.00% |
resources/images/prize-coffee.png | 16.41KB | 16.45KB | 0.00% |
resources/images/prize-television.png | 17.11KB | 17.19KB | 0.00% |
resources/images/roll-up-the-rim-cup.png | 31.75KB | 30.81KB | ▼ 2.96% |
resources/images/prize-prepaid-card.png | 19.51KB | 19.24KB | ▼ 1.38% |