Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/whatsonincapetown-event-search-widget/mc_woict.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; WOICT_Event_Search has a deprecated constructor
Server metrics [RAM: ▼1.93MB] [CPU: ▼58.59ms] Passed 4 tests
This is a short check of server-side resources used by WhatsOnInCapeTown Event Search Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.40 | 4.42 ▼43.54 |
Dashboard /wp-admin | 2.09 ▼1.26 | 5.66 ▼58.31 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 5.74 ▼40.10 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 6.91 ▼92.39 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 6.41 ▼32.56 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_searchpost-widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WhatsOnInCapeTown Event Search Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,943 ▲182 | 13.57 ▼0.78 | 6.48 ▲4.85 | 46.46 ▲1.77 |
Dashboard /wp-admin | 2,216 ▲42 | 5.64 ▼0.02 | 97.25 ▼3.34 | 42.42 ▼2.02 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 2.06 ▲0.07 | 37.94 ▼1.74 | 34.84 ▲1.56 |
Add New Post /wp-admin/post-new.php | 1,545 ▲17 | 23.13 ▼0.09 | 678.76 ▼33.19 | 36.44 ▼25.19 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.29 ▲0.08 | 112.85 ▲14.69 | 50.02 ▲7.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/whatsonincapetown-event-search-widget/mc_woict.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; WOICT_Event_Search has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_searchpost-widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/whatsonincapetown-event-search-widget/mc_woict/mc_woict.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/whatsonincapetown-event-search-widget/mc_woict.php:12
- > 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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Donate link: Please fix this invalid URI: ""
- Screenshots: Add an image for screenshot #1 (2.)
whatsonincapetown-event-search-widget/mc_woict.php 92% from 13 tests
This is the main PHP file of "WhatsOnInCapeTown Event Search Widget" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("whatsonincapetown-event-search-widget.php" instead of "mc_woict.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected2,906 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 409 | 367 | 2,317 |
CSS | 1 | 16 | 62 | 433 |
PHP | 2 | 102 | 53 | 149 |
XML | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 5 | 71.43% |
▷ Anonymous functions | 2 | 28.57% |
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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin