Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.78ms] Passed 4 tests
An overview of server-side resources used by Loyalty Reward Points for HubSpot
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.95 ▼4.09 |
Dashboard /wp-admin | 3.31 ▼0.04 | 45.82 ▼12.55 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.92 ▲2.38 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 78.43 ▼16.91 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.81 ▼1.55 |
Server storage [IO: ▲0.78MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Loyalty Reward Points for HubSpot
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.31 ▼0.04 | 1.70 ▲0.10 | 44.34 ▼0.09 |
Dashboard /wp-admin | 2,198 ▲27 | 5.77 ▲0.17 | 86.86 ▼6.77 | 36.47 ▼1.26 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.98 ▼0.01 | 38.64 ▲4.15 | 35.89 ▲3.21 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 22.98 ▼0.52 | 682.52 ▲8.27 | 59.81 ▲2.13 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.18 ▼0.04 | 93.20 ▼16.69 | 42.18 ▼2.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Loyalty_Reward_Points_For_Hubspot_Admin' not found in wp-content/plugins/loyalty-reward-points-for-hubspot/admin/partials/mwb-pointsandreward.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/loyalty-reward-points-for-hubspot/admin/partials/loyalty-reward-points-for-hubspot-admin-display.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/loyalty-reward-points-for-hubspot/admin/partials/mwb-testingtab.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% 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
Please fix the following attributes:
- Requires php: The plugin version is formatted incorrectly
loyalty-reward-points-for-hubspot/loyalty-reward-points-for-hubspot.php 92% from 13 tests
"Loyalty Reward Points for HubSpot" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 145 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin8,622 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 2,106 | 1,952 | 7,256 |
PHP | 16 | 235 | 736 | 741 |
CSS | 1 | 104 | 8 | 553 |
PO File | 1 | 29 | 35 | 72 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 5 | 11.63% |
▷ Public methods | 37 | 86.05% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 13.95% |
Functions | 10 | |
▷ Named functions | 10 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin