Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.42MB] [CPU: ▲2.72ms] Passed 4 tests
Server-side resources used by AM Events
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.44 | 40.09 ▲0.24 |
Dashboard /wp-admin | 3.72 ▲0.42 | 49.14 ▲0.69 |
Posts /wp-admin/edit.php | 3.85 ▲0.49 | 53.05 ▲8.34 |
Add New Post /wp-admin/post-new.php | 6.30 ▲0.42 | 99.51 ▲3.69 |
Media Library /wp-admin/upload.php | 3.64 ▲0.41 | 37.13 ▲6.24 |
All Events /wp-admin/edit.php?post_type=am_event | 3.70 | 39.72 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=am_event | 3.63 | 36.18 |
AM Events /wp-admin/options-general.php?page=am-events-settings | 3.61 | 31.18 |
Event Categories /wp-admin/edit-tags.php?taxonomy=am_event_categories&post_type=am_event | 3.63 | 34.15 |
Venues /wp-admin/edit-tags.php?taxonomy=am_venues&post_type=am_event | 3.63 | 40.34 |
Add New Event /wp-admin/post-new.php?post_type=am_event | 3.77 | 53.90 |
Server storage [IO: ▲0.27MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_am_upcoming_events |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for AM Events
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲100 | 14.47 ▼0.09 | 1.59 ▼0.05 | 41.13 ▼0.84 |
Dashboard /wp-admin | 2,249 ▲60 | 4.80 ▼0.18 | 113.56 ▲2.33 | 42.43 ▼1.46 |
Posts /wp-admin/edit.php | 2,144 ▲55 | 2.02 ▼0.03 | 41.06 ▲4.20 | 34.72 ▲1.39 |
Add New Post /wp-admin/post-new.php | 1,562 ▲43 | 18.49 ▼4.79 | 584.95 ▼90.62 | 54.80 ▲3.99 |
Media Library /wp-admin/upload.php | 1,431 ▲40 | 4.19 ▼0.05 | 95.74 ▼1.31 | 40.41 ▼4.34 |
All Events /wp-admin/edit.php?post_type=am_event | 1,175 | 1.96 | 32.06 | 29.71 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=am_event | 1,347 | 2.14 | 27.45 | 28.95 |
AM Events /wp-admin/options-general.php?page=am-events-settings | 846 | 2.06 | 22.62 | 25.72 |
Event Categories /wp-admin/edit-tags.php?taxonomy=am_event_categories&post_type=am_event | 1,302 | 2.14 | 26.97 | 26.48 |
Venues /wp-admin/edit-tags.php?taxonomy=am_venues&post_type=am_event | 1,302 | 2.14 | 28.95 | 28.53 |
Add New Event /wp-admin/post-new.php?post_type=am_event | 3,359 | 7.65 | 189.81 | 85.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- theysaidso_admin_options
- widget_am_upcoming_events
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/am-events/widget-upcoming-events.php:23
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/am-events/widget-upcoming-events.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Please a description for screenshot #4 in am-events/assets to your readme.txt
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
am-events/am-events.php Passed 13 tests
This is the main PHP file of "AM Events" version 1.13.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
85 characters long description:
Adds a post type for events and a customizable widget for displaying upcoming events.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin3,779 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 4 | 781 | 961 | 1,910 |
PHP | 4 | 426 | 564 | 1,736 |
JavaScript | 4 | 15 | 12 | 103 |
CSS | 2 | 6 | 18 | 30 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 53.00 |
▷ Minimum class complexity | 53.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 8.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 57.14% |
▷ Protected methods | 3 | 42.86% |
▷ Private methods | 0 | 0.00% |
Functions | 63 | |
▷ Named functions | 63 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin