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.43MB] [CPU: ▼2.57ms] Passed 4 tests
Analyzing server-side resources used by Events Calendar for GeoDirectory
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.91 ▲0.45 | 40.77 ▼0.34 |
Dashboard /wp-admin | 3.77 ▲0.47 | 47.39 ▼0.75 |
Posts /wp-admin/edit.php | 3.83 ▲0.46 | 50.37 ▼2.10 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.40 | 93.19 ▼7.10 |
Media Library /wp-admin/upload.php | 3.64 ▲0.40 | 38.87 ▲8.28 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 3.80 | 36.01 |
Server storage [IO: ▲0.87MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 69 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Events Calendar for GeoDirectory
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲55 | 14.33 ▼0.05 | 1.75 ▼0.02 | 43.60 ▼1.40 |
Dashboard /wp-admin | 2,225 ▲51 | 5.64 ▼0.00 | 91.58 ▲3.23 | 43.05 ▲1.57 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 2.04 ▲0.10 | 40.25 ▼1.79 | 42.73 ▲6.10 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 23.38 ▲0.19 | 686.42 ▲31.31 | 61.35 ▲7.96 |
Media Library /wp-admin/upload.php | 1,435 ▲38 | 4.25 ▲0.02 | 99.03 ▼4.77 | 46.81 ▲2.12 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 974 | 2.04 | 26.89 | 30.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- 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
Everything seems fine, however 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
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Super_Duper' not found in wp-content/plugins/events-for-geodirectory/includes/widgets/class-geodir-event-widget-schedules.php:12
- > PHP Fatal error
Uncaught Error: Class 'GeoDir_Admin_Dummy_Data' not found in wp-content/plugins/events-for-geodirectory/includes/admin/dummy-data/standard_events.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/events-for-geodirectory/includes/libraries/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Class 'WP_Super_Duper' not found in wp-content/plugins/events-for-geodirectory/includes/widgets/class-geodir-event-widget-ayi.php:8
- > PHP Fatal error
Uncaught Error: Class 'GeoDir_Admin_Dummy_Data' not found in wp-content/plugins/events-for-geodirectory/includes/admin/dummy-data/recurring_events.php:27
- > PHP Fatal error
Uncaught Error: Class 'WP_Super_Duper' not found in wp-content/plugins/events-for-geodirectory/includes/widgets/class-geodir-event-widget-calendar.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/events-for-geodirectory/includes/libraries/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2, #3 in events-for-geodirectory/assets to your readme.txt
events-for-geodirectory/events-for-geodirectory.php 92% from 13 tests
This is the main PHP file of "Events Calendar for GeoDirectory" version 2.3.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin13,210 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 41 | 2,265 | 3,516 | 11,000 |
PO File | 1 | 470 | 679 | 1,172 |
Sass | 1 | 123 | 0 | 578 |
JavaScript | 7 | 17 | 7 | 372 |
CSS | 3 | 19 | 8 | 88 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 110)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 64.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 453.00 |
Average method complexity | 6.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 110.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 28 | 100.00% |
▷ Final classes | 1 | 3.57% |
Methods | 341 | |
▷ Static methods | 193 | 56.60% |
▷ Public methods | 299 | 87.68% |
▷ Protected methods | 23 | 6.74% |
▷ Private methods | 19 | 5.57% |
Functions | 75 | |
▷ Named functions | 75 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 10 | 76.92% |
▷ Class constants | 3 | 23.08% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/yui/images/sprite.png | 3.66KB | 3.20KB | ▼ 12.55% |