Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲1.31MB] [CPU: ▲5.18ms] Passed 4 tests
Server-side resources used by Last Tap Events
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.75 ▲1.29 | 50.55 ▲2.32 |
Dashboard /wp-admin | 4.63 ▲1.33 | 67.50 ▲16.07 |
Posts /wp-admin/edit.php | 4.69 ▲1.34 | 63.74 ▲4.78 |
Add New Post /wp-admin/post-new.php | 7.20 ▲1.32 | 99.39 ▼2.44 |
Media Library /wp-admin/upload.php | 4.54 ▲1.31 | 55.34 ▲19.93 |
LT PDF Generator /wp-admin/tools.php?page=event_pdf | 4.55 | 47.77 |
Participants /wp-admin/edit.php?post_type=participant | 4.61 | 54.77 |
Add New /wp-admin/post-new.php?post_type=participant | 4.65 | 60.79 |
Add New /wp-admin/post-new.php?post_type=event | 7.19 | 111.32 |
All Events /wp-admin/edit.php?post_type=event | 4.61 | 54.57 |
Membership Manager /wp-admin/admin.php?page=event_membership | 4.54 | 49.22 |
Server storage [IO: ▲2.97MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 337 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_event_location_widget |
db_upgraded |
widget_recent-comments |
event_plugin |
event_plugin_cpt |
widget_theysaidso_widget |
can_compress_scripts |
event_plugin_tax |
widget_recent-posts |
Browser metrics Passed 4 tests
Last Tap Events: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,541 ▲755 | 29.40 ▲15.39 | 54.89 ▲52.88 | 29.30 ▼12.43 |
Dashboard /wp-admin | 2,542 ▲365 | 12.18 ▲6.52 | 169.96 ▲75.65 | 45.94 ▲4.47 |
Posts /wp-admin/edit.php | 2,492 ▲392 | 11.11 ▲9.08 | 104.19 ▲63.74 | 32.55 ▼6.55 |
Add New Post /wp-admin/post-new.php | 6,461 ▲4,935 | 23.03 ▼0.79 | 710.74 ▲86.68 | 38.17 ▼13.63 |
Media Library /wp-admin/upload.php | 1,626 ▲223 | 12.33 ▲8.17 | 134.16 ▲30.77 | 47.24 ▼3.07 |
LT PDF Generator /wp-admin/tools.php?page=event_pdf | 1,195 | 12.79 | 105.27 | 26.87 |
Participants /wp-admin/edit.php?post_type=participant | 1,544 | 11.02 | 112.40 | 32.32 |
Add New /wp-admin/post-new.php?post_type=participant | 2,133 | 12.39 | 238.03 | 75.17 |
Add New /wp-admin/post-new.php?post_type=event | 6,732 | 21.94 | 768.55 | 36.16 |
All Events /wp-admin/edit.php?post_type=event | 1,577 | 11.09 | 109.99 | 33.10 |
Membership Manager /wp-admin/admin.php?page=event_membership | 1,178 | 12.84 | 98.14 | 27.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/last-tap-events/last-tap-plugin.php
- > /wp-content/plugins/last-tap-events/tests/bootstrap.php
- 27× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/last-tap-events/templates/register.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/last-tap-events/tests/test-sample.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/last-tap-events/templates/auth.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/last-tap-events/page-templates/event-template.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/last-tap-events/templates/contact-form.php:1
- > PHP Fatal error
Uncaught Error: Class 'FPDF' not found in wp-content/plugins/last-tap-events/inc/api/LastTap_Pdf.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/last-tap-events/templates/email.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/last-tap-events/page-templates/location-template.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/last-tap-events/page-templates/single-event.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/last-tap-events/page-templates/event-membership.php:8
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=event_membership
- > Network (severe)
wp-content/plugins/last-tap-events/node_modules/code-prettify/styles/desert.css - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please a description for screenshot #1 in last-tap-events/assets to your readme.txt
last-tap-events/last-tap-plugin.php 77% from 13 tests
This is the main PHP file of "Last Tap Events" version 1.0.4, 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:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("last-tap-events.php" instead of "last-tap-plugin.php")
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
Everything looks great! No dangerous files found in this plugin50,234 lines of code in 287 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 122 | 1,901 | 3,568 | 34,402 |
PHP | 83 | 1,493 | 994 | 8,498 |
TypeScript | 11 | 125 | 37 | 3,534 |
CSS | 20 | 517 | 332 | 2,570 |
JSON | 13 | 0 | 0 | 402 |
Sass | 8 | 46 | 0 | 309 |
SVG | 12 | 5 | 3 | 201 |
Bourne Shell | 1 | 21 | 11 | 123 |
Markdown | 13 | 58 | 0 | 84 |
HTML | 2 | 11 | 0 | 80 |
XML | 2 | 0 | 0 | 31 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 337.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 44 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 44 | 100.00% |
▷ Final classes | 3 | 6.82% |
Methods | 346 | |
▷ Static methods | 9 | 2.60% |
▷ Public methods | 298 | 86.13% |
▷ Protected methods | 38 | 10.98% |
▷ Private methods | 10 | 2.89% |
Functions | 27 | |
▷ Named functions | 26 | 96.30% |
▷ Anonymous functions | 1 | 3.70% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon/Google_Calendar_icon-icons.com_75710.png | 5.97KB | 3.17KB | ▼ 46.91% |
assets/images/no-image-available-icon-6.png | 17.14KB | 7.95KB | ▼ 53.65% |