Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.67MB] [CPU: ▼17.19ms] Passed 4 tests
This is a short check of server-side resources used by WP Event Calender
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 52.16 ▼5.86 |
Dashboard /wp-admin | 3.34 ▲0.03 | 47.49 ▼4.01 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 51.93 ▲0.11 |
Add New Post /wp-admin/post-new.php | 3.12 ▼2.76 | 37.24 ▼59.01 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.34 ▲1.80 |
Events Category /wp-admin/edit-tags.php?taxonomy=events_cat&post_type=event-calender | 3.26 | 39.08 |
Events /wp-admin/edit.php?post_type=event-calender | 3.30 | 36.57 |
Add New /wp-admin/post-new.php?post_type=event-calender | 3.12 | 34.27 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Event Calender
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲171 | 13.79 ▼0.70 | 8.10 ▲6.21 | 38.99 ▼7.81 |
Dashboard /wp-admin | 2,226 ▲46 | 5.56 ▼0.10 | 91.62 ▲0.99 | 39.58 ▲3.08 |
Posts /wp-admin/edit.php | 2,131 ▲34 | 2.15 ▲0.19 | 32.65 ▼2.58 | 38.17 ▲2.70 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.64 ▲0.69 | 702.34 ▲59.57 | 62.80 ▲12.14 |
Media Library /wp-admin/upload.php | 1,431 ▲34 | 4.23 ▼0.06 | 94.88 ▼10.56 | 44.78 ▼3.34 |
Events Category /wp-admin/edit-tags.php?taxonomy=events_cat&post_type=event-calender | 1,302 | 2.12 | 29.75 | 32.18 |
Events /wp-admin/edit.php?post_type=event-calender | 1,112 | 1.90 | 34.44 | 28.36 |
Add New /wp-admin/post-new.php?post_type=event-calender | 2,446 | 7.63 | 170.89 | 68.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% 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 server-side errors were triggered
- > GET request to /wp-admin/post-new.php?post_type=event-calender
- > Notice in wp-content/plugins/wp-event-calender/plugin-hook.php+566
Undefined index: pro_eventcalender_meta_box_nonce
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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-event-calender/plugin-hook.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-event-calender/plugin-hook.php:13
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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 require attention:
- Screenshots: Please add an image for screenshot #1 (WP Event Calender in a post.)
- Donate link: Invalid url: ""
wp-event-calender/plugin-hook.php 85% from 13 tests
"WP Event Calender" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-event-calender.php" instead of "plugin-hook.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Good job! No executable or dangerous file extensions detected899 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 142 | 56 | 399 |
CSS | 1 | 52 | 6 | 225 |
JavaScript | 1 | 84 | 29 | 212 |
PO File | 1 | 22 | 42 | 63 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/img/nav_black.png | 0.82KB | 0.51KB | ▼ 37.80% |
css/img/date_icon.png | 0.42KB | 0.60KB | 0.00% |
css/img/nav.png | 0.45KB | 0.42KB | ▼ 5.04% |