Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.21MB] [CPU: ▼12.00ms] Passed 4 tests
A check of server-side resources used by Tempus Fugit
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.23 | 37.58 ▼3.70 |
Dashboard /wp-admin | 3.52 ▲0.18 | 46.06 ▼13.72 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 44.43 ▼0.67 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.21 | 81.00 ▼29.90 |
Media Library /wp-admin/upload.php | 3.45 ▲0.21 | 37.08 ▲0.80 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_tempus_onthisday_widget |
widget_tempus_thisweek_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Tempus Fugit: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.26 ▼0.30 | 1.70 ▼0.23 | 42.05 ▼0.16 |
Dashboard /wp-admin | 2,195 ▲17 | 5.57 ▼0.14 | 80.74 ▼34.42 | 36.97 ▼8.56 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.02 | 33.96 ▼5.19 | 33.25 ▼4.57 |
Add New Post /wp-admin/post-new.php | 1,528 ▼7 | 23.08 ▲4.72 | 682.61 ▲42.57 | 50.11 ▼20.09 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.15 ▼0.09 | 95.92 ▼4.91 | 40.90 ▼0.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_tempus_thisweek_widget
- widget_tempus_onthisday_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
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 everything seems fine, this is not an exhaustive test
SRP 50% 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
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/tempus-fugit/includes/class-tempus-onthisday-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/tempus-fugit/tempus-fugit.php:12
- > PHP Fatal error
Uncaught Error: Class 'Tempus_OnThisDay_Widget' not found in wp-content/plugins/tempus-fugit/includes/class-tempus-thisweek-widget.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: date, archive, onthisday, time
tempus-fugit/tempus-fugit.php Passed 13 tests
The main PHP script in "Tempus Fugit" version 1.1.2 is automatically included on every request by WordPress
48 characters long description:
Enhance your Time Based Experiences in WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,090 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 127 | 197 | 1,090 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 12.56 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 69 | |
▷ Static methods | 53 | 76.81% |
▷ Public methods | 69 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin