Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- This plugin did not install gracefully
- > Warning in wp-content/plugins/tufftufftime/tufftufftime.php+37
require(wp-content/plugins/tufftufftime/includes/class-TuffTuffTime.php): failed to open stream: No such file or directory
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.36ms] Passed 4 tests
A check of server-side resources used by TuffTuffTime
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 56.55 ▲17.83 |
Dashboard /wp-admin | 3.31 ▲0.00 | 42.59 ▼3.31 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.46 ▼1.06 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.93 ▼8.70 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.19 ▼0.36 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for TuffTuffTime
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.80 ▲0.51 | 2.27 ▲0.44 | 52.56 ▲9.24 |
Dashboard /wp-admin | 2,206 ▲15 | 4.86 ▼0.01 | 99.51 ▼5.94 | 38.82 ▼3.41 |
Posts /wp-admin/edit.php | 2,086 ▼0 | 2.04 ▲0.05 | 37.03 ▼0.66 | 34.07 ▼4.58 |
Add New Post /wp-admin/post-new.php | 1,521 ▼8 | 23.04 ▲4.80 | 665.86 ▲49.59 | 59.35 ▲0.32 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.22 ▼0.02 | 94.06 ▼3.29 | 41.14 ▼4.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% 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 50% 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 fix the following items
- 6× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: attributes in wp-content/plugins/tufftufftime/public/partials/tufftufftime-public-simple-timetable.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/tufftufftime/uninstall.php:32
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/tufftufftime/public/partials/tufftufftime-public-simple-timetable.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/tufftufftime/admin/partials/tufftufftime-admin-options.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/tufftufftime/public/partials/tufftufftime-public-simple-timetable.php:20
- > PHP Fatal error
Uncaught Error: Class 'TuffTuffTime' not found in wp-content/plugins/tufftufftime/public/class-tufftufftime-public.php:23
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
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 an image for screenshot #1 (Example of output when using the shortcode.)
tufftufftime/tufftufftime.php 92% from 13 tests
The main file in "TuffTuffTime" v. 2.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected478 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 175 | 484 | 383 |
PO File | 1 | 17 | 19 | 77 |
Markdown | 1 | 10 | 0 | 18 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 4.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 80.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 19.23% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
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
1 PNG file occupies 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 71.08KB | 19.63KB | ▼ 72.38% |