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
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.20ms] Passed 4 tests
Server-side resources used by LH Membership Numbers
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.19 ▲0.56 |
Dashboard /wp-admin | 3.32 ▼0.02 | 50.61 ▼13.48 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 44.13 ▼2.12 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 86.67 ▼9.75 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 35.22 ▲1.12 |
Membership Numbers /wp-admin/options-general.php?page=lh-membership-numbers/lh-membership-numbers.php | 3.24 | 31.54 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by LH Membership Numbers
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.35 ▲0.19 | 1.71 ▲0.03 | 43.31 ▼0.44 |
Dashboard /wp-admin | 2,196 ▲16 | 5.59 ▼0.08 | 83.17 ▼14.70 | 38.15 ▼8.87 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.03 ▲0.01 | 34.20 ▼0.54 | 31.68 ▼1.50 |
Add New Post /wp-admin/post-new.php | 1,539 ▲10 | 23.30 ▲0.23 | 639.18 ▼34.48 | 50.11 ▼10.45 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.22 ▲0.06 | 96.75 ▼12.41 | 41.17 ▼6.44 |
Membership Numbers /wp-admin/options-general.php?page=lh-membership-numbers/lh-membership-numbers.php | 785 | 2.02 | 23.82 | 24.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=lh-membership-numbers/lh-membership-numbers.php
- > Notice in wp-content/plugins/lh-membership-numbers/partials/option-settings.php+8
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/lh-membership-numbers/lh-membership-numbers.php:237
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/lh-membership-numbers/partials/option-settings.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: user id, id, membership, cards, members...
lh-membership-numbers/lh-membership-numbers.php 92% from 13 tests
The entry point to "LH Membership Numbers" version 1.05 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin132 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 120 | 30 | 132 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 3.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 13 | |
▷ Static methods | 1 | 7.69% |
▷ Public methods | 12 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.69% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
No PNG files were detected