Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/alt-calendar/Gloves/PluginMenu.php+89
count(): Parameter must be an array or an object that implements Countable
Server metrics [RAM: ▼1.78MB] [CPU: ▼52.21ms] Passed 4 tests
A check of server-side resources used by Alt Calendar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.21 ▼1.25 | 6.69 ▼37.93 |
Dashboard /wp-admin | 2.23 ▼1.07 | 10.64 ▼48.12 |
Posts /wp-admin/edit.php | 2.23 ▼1.13 | 11.30 ▼35.83 |
Add New Post /wp-admin/post-new.php | 2.23 ▼3.66 | 10.12 ▼86.96 |
Media Library /wp-admin/upload.php | 2.23 ▼1.00 | 9.82 ▼25.71 |
Calendars /wp-admin/edit-tags.php?taxonomy=alt-calendar&post_type=calendar_event | 2.23 | 9.86 |
Events /wp-admin/edit.php?post_type=calendar_event | 2.23 | 9.33 |
Alt Calendar /wp-admin/admin.php?page=alt-calendar | 2.23 | 9.38 |
Server storage [IO: ▲1.31MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 120 new files
Database: no new tables, 10 new options
New WordPress options |
---|
default_calendar |
installed |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_alt_widget |
widget_recent-comments |
theysaidso_admin_options |
styling |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Alt Calendar
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,964 ▲202 | 15.42 ▲1.18 | 39.71 ▲37.94 | 39.09 ▼4.65 |
Dashboard /wp-admin | 2,241 ▲67 | 5.70 ▲0.05 | 100.23 ▲8.22 | 41.91 ▲2.03 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 2.06 ▲0.03 | 44.67 ▲3.27 | 34.34 ▲0.02 |
Add New Post /wp-admin/post-new.php | 1,565 ▲39 | 23.66 ▲0.40 | 609.05 ▼14.82 | 53.33 ▼13.51 |
Media Library /wp-admin/upload.php | 1,445 ▲48 | 4.26 ▲0.06 | 103.91 ▼1.92 | 42.10 ▼0.79 |
Calendars /wp-admin/edit-tags.php?taxonomy=alt-calendar&post_type=calendar_event | 1,396 | 2.34 | 35.13 | 29.99 |
Events /wp-admin/edit.php?post_type=calendar_event | 1,685 | 2.02 | 36.88 | 31.88 |
Alt Calendar /wp-admin/admin.php?page=alt-calendar | 938 | 1.84 | 32.97 | 29.95 |
Uninstaller [IO: ▲1.31MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attentionThis plugin did not uninstall successfully, leaving 8 options in the database
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/alt-calendar/Gloves/PluginMenu.php+89
count(): Parameter must be an array or an object that implements Countable
- The plugin did not uninstall successfully, leaving 120 files (1.31MB) in the plugin directory
- (new file) Gloves/Module.php
- (new file) Gloves/AbstractMetaBox.php
- (new file) Gloves/Config.php
- (new file) Gloves/Logger.php
- (new file) Gloves/Plugin.php
- (new file) Gloves/PluginSettings.php
- (new file) Gloves/Render.php
- (new file) Gloves/PostType.php
- (new file) Gloves/PluginMenu.php
- (new file) Gloves/Model/Model.php
- ...
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- recovery_mode_email_last_sent
- widget_alt_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=alt-calendar
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/alt-calendar/Gloves/PluginMenu.php+89
count(): Parameter must be an array or an object that implements Countable
SRP 0% 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
Almost there! Just fix the following items
- 17× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/alt-calendar/Module/Widget.php
- > /wp-content/plugins/alt-calendar/Gloves/Template/Widget.php
- > /wp-content/plugins/alt-calendar/Gloves/Module.php
- > /wp-content/plugins/alt-calendar/Gloves/Plugin.php
- > /wp-content/plugins/alt-calendar/Gloves/Template/Standard.php
- > /wp-content/plugins/alt-calendar/Gloves/PluginSettings.php
- > /wp-content/plugins/alt-calendar/Gloves/PostType.php
- > /wp-content/plugins/alt-calendar/alt-calendar.php
- > /wp-content/plugins/alt-calendar/glovesCLI.php
- > /wp-content/plugins/alt-calendar/Gloves/Taxonomy.php
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/alt-calendar/views/settings.php:7
- > PHP Fatal error
Uncaught Error: Class 'Gloves\\PostType' not found in wp-content/plugins/alt-calendar/Module/Event.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/alt-calendar/views/dialog.php:3
- > PHP Fatal error
Uncaught Error: Class 'Gloves\\Taxonomy' not found in wp-content/plugins/alt-calendar/Module/Calendar.php:7
- > PHP Fatal error
Uncaught Error: Class 'Gloves\\AbstractMetaBox' not found in wp-content/plugins/alt-calendar/Module/MetaBox.php:6
- > PHP Fatal error
Uncaught Error: Class 'Gloves\\ScriptsManager' not found in wp-content/plugins/alt-calendar/Module/PluginManager.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: organizer, schedule, calendar, events, google calendar...
alt-calendar/glovesCLI.php 69% from 13 tests
"Alt Calendar" version 0.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Domain Path: Please prefix the domain path with a forward slash character ("/")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("alt-calendar.php" instead of "glovesCLI.php")
- Domain Path: You should use only dashes and lowercase characters for the domain path ("")
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
Everything looks great! No dangerous files found in this plugin10,640 lines of code in 97 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 62 | 2,856 | 1,700 | 8,112 |
PHP | 27 | 343 | 234 | 1,372 |
CSS | 6 | 308 | 196 | 938 |
PO File | 2 | 85 | 100 | 218 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 5.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 21 | |
▷ Abstract classes | 6 | 28.57% |
▷ Concrete classes | 15 | 71.43% |
▷ Final classes | 0 | 0.00% |
Methods | 115 | |
▷ Static methods | 81 | 70.43% |
▷ Public methods | 102 | 88.70% |
▷ Protected methods | 7 | 6.09% |
▷ Private methods | 6 | 5.22% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
14 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/fullcalendar/lib/cupertino/images/ui-bg_highlight-hard_70_000000_1x100.png | 0.28KB | 0.16KB | ▼ 44.10% |
assets/fullcalendar/lib/cupertino/images/ui-icons_3d80b3_256x240.png | 4.49KB | 4.18KB | ▼ 6.89% |
assets/fullcalendar/lib/cupertino/images/ui-bg_glass_100_e4f1fb_1x400.png | 0.38KB | 0.16KB | ▼ 58.87% |
assets/fullcalendar/lib/cupertino/images/ui-bg_highlight-soft_25_ffef8f_1x100.png | 0.34KB | 0.17KB | ▼ 50.86% |
assets/fullcalendar/lib/cupertino/images/ui-icons_2694e8_256x240.png | 4.49KB | 4.18KB | ▼ 6.89% |