Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.86MB] [CPU: ▲0.39ms] Passed 4 tests
This is a short check of server-side resources used by Spiffy Calendar
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.36 ▲0.90 | 46.30 ▲4.72 |
Dashboard /wp-admin | 4.21 ▲0.86 | 54.76 ▼3.60 |
Posts /wp-admin/edit.php | 4.26 ▲0.90 | 52.51 ▲4.58 |
Add New Post /wp-admin/post-new.php | 6.73 ▲0.84 | 95.70 ▼4.14 |
Media Library /wp-admin/upload.php | 4.07 ▲0.84 | 45.61 ▲12.38 |
Options /wp-admin/admin.php?page=spiffy-calendar&tab=options | 4.17 | 40.00 |
Add Event /wp-admin/admin.php?page=spiffy-calendar&tab=event_edit&action=add | 4.11 | 43.44 |
Categories /wp-admin/admin.php?page=spiffy-calendar&tab=categories | 4.11 | 41.83 |
Manage Events /wp-admin/admin.php?page=spiffy-calendar | 4.08 | 41.69 |
Server storage [IO: ▲1.18MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 47 new files
Database: 3 new tables, 11 new options
New tables |
---|
wp_spiffy_calendar_meta |
wp_spiffy_calendar_categories |
wp_spiffy_calendar |
New WordPress options |
---|
can_compress_scripts |
widget_spiffy_minical_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_spiffy_today_widget |
widget_recent-comments |
widget_spiffy_upcoming_widget |
spiffy_calendar_options |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Spiffy Calendar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲146 | 14.14 ▼0.57 | 1.78 ▼0.00 | 39.06 ▼4.18 |
Dashboard /wp-admin | 2,288 ▲111 | 5.67 ▲0.05 | 92.65 ▼2.20 | 42.50 ▲0.67 |
Posts /wp-admin/edit.php | 2,196 ▲96 | 2.01 ▲0.06 | 40.53 ▼2.48 | 36.65 ▲1.63 |
Add New Post /wp-admin/post-new.php | 6,424 ▲4,898 | 27.86 ▲4.93 | 924.87 ▲287.41 | 64.67 ▲11.84 |
Media Library /wp-admin/upload.php | 1,494 ▲94 | 4.23 ▲0.03 | 105.30 ▲10.20 | 43.06 ▲1.02 |
Options /wp-admin/admin.php?page=spiffy-calendar&tab=options | 1,723 | 3.64 | 73.21 | 29.49 |
Add Event /wp-admin/admin.php?page=spiffy-calendar&tab=event_edit&action=add | 1,533 | 3.44 | 50.39 | 30.41 |
Categories /wp-admin/admin.php?page=spiffy-calendar&tab=categories | 1,352 | 3.44 | 56.33 | 27.54 |
Manage Events /wp-admin/admin.php?page=spiffy-calendar | 1,518 | 3.59 | 45.23 | 32.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 plugin did not uninstall gracefully
- > Notice in wp-content/plugins/spiffy-calendar/uninstall.php+9
Constant WP_SPIFFYCAL_TABLE already defined
- Zombie WordPress options detected upon uninstall: 10 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_spiffy_today_widget
- db_upgraded
- widget_spiffy_featured_widget
- widget_spiffy_upcoming_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_spiffy_minical_widget
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
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
Almost there! Just fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/spiffy-calendar/spiffy-calendar.php on line 36
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/spiffy-calendar/spiffy-calendar.php:40
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/spiffy-calendar/spiffy-calendar.php on line 36
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/spiffy-calendar/spiffy-calendar.php on line 36
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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
These attributes need your attention:
- Tags: Please delete some tags, you are using 17 tag instead of maximum 10
- Screenshots: Please add images for these screenshots: #1 (Full calendar with category color as background color, and detailed display turned off to hide images), #2 (Full calendar, category color used for text and detailed display turned off), #3 (Mini calendar), #4 (Add an event), #5 (Responsive 3-column display), #6 (Shortcode generator in the classic editor), #7 (Calendar options), #8 (Upcoming events list, popup view has details appear when hovering over event title), #9 (Upcoming events list, expanded view)
spiffy-calendar/spiffy-calendar.php Passed 13 tests
This is the main PHP file of "Spiffy Calendar" version 4.9.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
135 characters long description:
A full featured, simple to use Spiffy Calendar plugin for WordPress that allows you to manage and display your events and appointments.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin7,203 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 750 | 833 | 4,395 |
PO File | 5 | 769 | 1,119 | 1,855 |
CSS | 1 | 33 | 15 | 643 |
JavaScript | 3 | 42 | 75 | 310 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 83.44 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 422.00 |
Average method complexity | 7.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 93.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 | 113 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 111 | 98.23% |
▷ Protected methods | 1 | 0.88% |
▷ Private methods | 1 | 0.88% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.65MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 27.84KB | 12.48KB | ▼ 55.19% |
screenshot-2.png | 28.47KB | 12.88KB | ▼ 54.77% |
screenshot-6.png | 16.20KB | 8.71KB | ▼ 46.25% |
screenshot-7.png | 51.12KB | 26.58KB | ▼ 48.00% |
screenshot-4.png | 39.17KB | 15.46KB | ▼ 60.52% |