Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼7.31ms] Passed 4 tests
An overview of server-side resources used by Events as Posts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.14 ▼2.07 |
Dashboard /wp-admin | 3.36 ▲0.06 | 47.38 ▼4.52 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 42.68 ▼11.26 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 85.61 ▼11.39 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 35.86 ▼1.52 |
Add event /wp-admin/post-new.php?post_type=eap_event | 6.06 | 84.00 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=eap_event | 3.37 | 39.44 |
Settings /wp-admin/edit.php?post_type=eap_event&page=eap_settings | 3.25 | 29.95 |
All events /wp-admin/edit.php?post_type=eap_event | 3.34 | 35.52 |
Server storage [IO: ▲0.06MB] [DB: ▲0.08MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
category_children |
eap_version |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
eap_settings |
can_compress_scripts |
widget_recent-comments |
eap_settings_style |
Browser metrics Passed 4 tests
Events as Posts: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,862 ▲105 | 13.47 ▼1.16 | 1.65 ▼0.21 | 42.42 ▲0.23 |
Dashboard /wp-admin | 2,260 ▲69 | 5.02 ▲0.15 | 99.55 ▼6.85 | 42.07 ▼3.35 |
Posts /wp-admin/edit.php | 2,145 ▲53 | 2.32 ▲0.35 | 34.81 ▼7.29 | 31.55 ▼5.21 |
Add New Post /wp-admin/post-new.php | 1,568 ▲34 | 18.49 ▼4.47 | 608.90 ▲6.79 | 33.90 ▼12.92 |
Media Library /wp-admin/upload.php | 1,445 ▲57 | 4.41 ▲0.17 | 97.85 ▼1.61 | 41.36 ▼7.64 |
Add event /wp-admin/post-new.php?post_type=eap_event | 6,702 | 21.59 | 918.04 | 36.44 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=eap_event | 1,502 | 2.08 | 35.15 | 35.04 |
Settings /wp-admin/edit.php?post_type=eap_event&page=eap_settings | 1,175 | 2.10 | 28.87 | 51.14 |
All events /wp-admin/edit.php?post_type=eap_event | 1,147 | 2.24 | 32.71 | 30.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- category_children
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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 items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/events-as-posts/events-as-posts.php
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/events-as-posts/settings/eap-settings-page.php:122
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/events-as-posts/event-meta.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/events-as-posts/event-post-type.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/events-as-posts/settings/eap-register-settings.php:107
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/events-as-posts/eap-settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/events-as-posts/eap-functions.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/events-as-posts/event-content.php:3
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: events, agenda, event list, event
events-as-posts/events-as-posts.php Passed 13 tests
"Events as Posts" version 0.5.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
59 characters long description:
A simple plugin that allows you to post events on your site
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 plugin1,135 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 409 | 148 | 1,127 |
JavaScript | 1 | 0 | 1 | 5 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
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 | 50 | |
▷ Named functions | 50 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin