Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼296.58ms] Passed 4 tests
Analyzing server-side resources used by GamiPress - WishList Member integration
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 54.74 ▲4.75 |
Dashboard /wp-admin | 3.41 ▲0.01 | 33.50 ▼0.08 |
Posts /wp-admin/edit.php | 3.64 ▲0.01 | 36.57 ▼4.03 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 93.31 ▼1,179.89 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 23.61 ▼2.32 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for GamiPress - WishList Member integration
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,825 ▲83 | 16.41 ▲0.54 | 6.33 ▼0.01 | 1.88 ▼0.25 |
Dashboard /wp-admin | 2,935 ▲55 | 6.49 ▼0.03 | 130.49 ▼13.87 | 158.39 ▼2.23 |
Posts /wp-admin/edit.php | 2,722 ▲37 | 3.45 ▲0.02 | 61.94 ▼5.01 | 138.31 ▼11.16 |
Add New Post /wp-admin/post-new.php | 1,630 ▼81 | 19.80 ▼1.15 | 402.46 ▼34.20 | 155.16 ▲5.83 |
Media Library /wp-admin/upload.php | 1,726 ▲28 | 5.75 ▲0.03 | 154.79 ▲18.15 | 195.79 ▲7.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gamipress-wishlist-member-integration/gamipress-wishlist-member.php:199
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
gamipress-wishlist-member-integration/gamipress-wishlist-member.php 92% from 13 tests
"GamiPress - WishList Member integration" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gamipress-wishlist-member-integration.php" instead of "gamipress-wishlist-member.php")
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
No dangerous file extensions were detected365 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 135 | 276 | 326 |
JavaScript | 2 | 14 | 4 | 39 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.71 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 7 | |
▷ Static methods | 1 | 14.29% |
▷ Public methods | 3 | 42.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 57.14% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin