Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.12ms] Passed 4 tests
Server-side resources used by WP Event Map
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 42.30 ▼1.04 |
Dashboard /wp-admin | 3.34 ▲0.03 | 47.77 ▼3.99 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.81 ▲0.79 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 85.31 ▼16.24 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.43 ▲2.41 |
All Events /wp-admin/edit.php?post_type=event | 3.30 | 35.63 |
Add New /wp-admin/post-new.php?post_type=event | 3.39 | 48.96 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WP Event Map
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,981 ▲246 | 15.45 ▲1.23 | 11.58 ▲9.82 | 54.55 ▲10.42 |
Dashboard /wp-admin | 2,257 ▲78 | 5.87 ▲0.74 | 110.46 ▼17.06 | 40.04 ▼5.90 |
Posts /wp-admin/edit.php | 2,140 ▲48 | 2.16 ▲0.16 | 48.89 ▲11.74 | 35.27 ▲0.79 |
Add New Post /wp-admin/post-new.php | 1,565 ▲28 | 18.42 ▼4.85 | 595.32 ▼75.48 | 34.53 ▼20.45 |
Media Library /wp-admin/upload.php | 1,436 ▲48 | 5.28 ▲1.05 | 104.98 ▲2.76 | 42.17 ▼0.88 |
All Events /wp-admin/edit.php?post_type=event | 1,118 | 2.79 | 43.81 | 28.55 |
Add New /wp-admin/post-new.php?post_type=event | 4,536 | 9.56 | 217.25 | 69.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-event-map/event-meta.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: event, map, date
wp-event-map/event-map.php 77% from 13 tests
Analyzing the main PHP file in "WP Event Map" version 1.0
You should first fix the following items:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 192 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-event-map.php" instead of "event-map.php")
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 plugin5,604 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 630 | 306 | 4,203 |
CSS | 4 | 164 | 165 | 966 |
PHP | 2 | 118 | 183 | 435 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 15.38% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-datepicker.png | 0.63KB | 0.48KB | ▼ 23.91% |