Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.53ms] Passed 4 tests
This is a short check of server-side resources used by Timetable
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.75 ▼4.00 |
Dashboard /wp-admin | 3.36 ▲0.05 | 49.42 ▼7.55 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 44.56 ▼2.02 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 88.26 ▼0.54 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.18 ▲0.46 |
Server storage [IO: ▲0.09MB] [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: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_timetable_widget |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Timetable: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲94 | 14.41 ▼0.04 | 1.90 ▼0.51 | 46.26 ▼7.74 |
Dashboard /wp-admin | 2,230 ▲41 | 5.85 ▲0.90 | 100.90 ▼10.19 | 39.89 ▼4.03 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.02 ▼0.02 | 32.85 ▼6.07 | 31.38 ▼3.75 |
Add New Post /wp-admin/post-new.php | 1,562 ▲29 | 18.14 ▼5.20 | 640.12 ▼27.17 | 59.33 ▲2.91 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.20 ▲0.01 | 95.33 ▼8.72 | 42.36 ▼3.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_timetable_widget
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-timetable/timetable-widget.html.php
- > /wp-content/plugins/wp-timetable/admin/timetable-splash.php
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wp-timetable/timetable-widget.html.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-timetable/admin/timetable-admin.php:26
- > PHP Notice
Undefined variable: times in wp-content/plugins/wp-timetable/timetable-widget.html.php on line 22
- > PHP Notice
Undefined variable: headings in wp-content/plugins/wp-timetable/timetable-widget.html.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-timetable/timetable-widget.php:14
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wp-timetable/timetable-widget.html.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function timetable_options_title() in wp-content/plugins/wp-timetable/admin/timetable-options.php:3
- > PHP Notice
Undefined variable: second_headings in wp-content/plugins/wp-timetable/timetable-widget.html.php on line 18
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wp-timetable/timetable-widget.html.php on line 13
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: table, wp, timetable, time, event...
wp-timetable/timetable.php 85% from 13 tests
"Timetable" version 0.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-timetable.php" instead of "timetable.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin368 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 98 | 178 | 265 |
CSS | 1 | 22 | 3 | 97 |
Markdown | 1 | 7 | 0 | 6 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 100.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.08MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
demo/timetable.png | 49.51KB | 14.65KB | ▼ 70.41% |
assets/imgs/timetable-logo-cropped.png | 0.58KB | 0.75KB | 0.00% |
demo/settings.png | 28.06KB | 15.66KB | ▼ 44.18% |
assets/imgs/timetable-logo-cropped-yellow.png | 0.79KB | 0.75KB | ▼ 5.92% |