Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.91MB] [CPU: ▼34.02ms] Passed 4 tests
A check of server-side resources used by Wishlist Member API Testing
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.83 ▼6.59 |
Dashboard /wp-admin | 3.03 ▼0.27 | 22.15 ▼22.50 |
Posts /wp-admin/edit.php | 3.03 ▼0.32 | 26.38 ▼22.15 |
Add New Post /wp-admin/post-new.php | 3.03 ▼2.85 | 23.63 ▼83.57 |
Media Library /wp-admin/upload.php | 3.03 ▼0.20 | 22.85 ▼7.86 |
Wishlist Member API Testing /wp-admin/tools.php?page=wlm-api-testing | 3.03 | 21.74 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Wishlist Member API Testing
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲174 | 14.05 ▼0.33 | 5.25 ▲3.31 | 39.90 ▲0.39 |
Dashboard /wp-admin | 2,211 ▲26 | 5.81 ▲0.94 | 100.28 ▲1.62 | 39.00 ▼5.81 |
Posts /wp-admin/edit.php | 2,097 ▲11 | 2.04 ▲0.02 | 38.71 ▼1.04 | 34.87 ▲1.78 |
Add New Post /wp-admin/post-new.php | 1,615 ▲80 | 23.77 ▲0.57 | 657.49 ▼32.01 | 57.16 ▼7.69 |
Media Library /wp-admin/upload.php | 1,399 ▲17 | 4.12 ▼0.09 | 106.31 ▲8.74 | 44.69 ▼1.97 |
Wishlist Member API Testing /wp-admin/tools.php?page=wlm-api-testing | 824 | 1.70 | 24.27 | 27.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/wishlist-member-api-testing/includes/wlm-api-test.class.php+66
Undefined index: wlmtest_level_id
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/tools.php?page=wlm-api-testing
- > Notice in wp-content/plugins/wishlist-member-api-testing/includes/wlm-api-test.class.php+66
Undefined index: wlmtest_level_id
- > GET request to /wp-admin/tools.php?page=wlm-api-testing
- > Notice in wp-content/plugins/wishlist-member-api-testing/includes/wlm-api-test.class.php+33
Trying to get property 'id' of non-object
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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wishlist-member-api-testing/includes/wlm-api-test.class.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 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
2 plugin tags: wishlist member, membership platforms
wishlist-member-api-testing/wlm-api-test.php 77% from 13 tests
Analyzing the main PHP file in "Wishlist Member API Testing" version 1.0.4
Please take the time to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.4" instead of "4.0")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wishlist-member-api-testing.php" instead of "wlm-api-test.php")
- Description: Keep the plugin description shorter than 140 characters (currently 160 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected400 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 84 | 70 | 391 |
JavaScript | 1 | 5 | 0 | 6 |
CSS | 1 | 1 | 0 | 3 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of 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.41 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 3.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 84.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 15.79% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin