Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼139.21ms] Passed 4 tests
Analyzing server-side resources used by Member authorisation for Sheep CRM
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 33.16 ▲10.12 |
Dashboard /wp-admin | 3.15 ▲0.09 | 49.61 ▲3.31 |
Posts /wp-admin/edit.php | 3.26 ▲0.14 | 50.40 ▲5.67 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.06 | 96.62 ▼561.71 |
Media Library /wp-admin/upload.php | 3.09 ▲0.08 | 38.21 ▼4.12 |
Sheep member authorisation /wp-admin/options-general.php?page=sheep-member-authorisation | 3.06 | 33.12 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Member authorisation for Sheep CRM
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.80 ▲0.31 | 9.35 ▲0.82 | 52.75 ▲1.82 |
Dashboard /wp-admin | 2,974 ▲40 | 5.89 ▼0.29 | 143.27 ▼21.08 | 107.92 ▼18.61 |
Posts /wp-admin/edit.php | 2,744 ▲8 | 2.69 ▼0.00 | 68.71 ▲8.35 | 98.67 ▲4.74 |
Add New Post /wp-admin/post-new.php | 1,675 ▲94 | 18.84 ▲2.23 | 372.65 ▼30.43 | 118.26 ▼5.52 |
Media Library /wp-admin/upload.php | 1,818 ▲11 | 5.01 ▼0.00 | 153.23 ▼38.75 | 122.82 ▼9.10 |
Sheep member authorisation /wp-admin/options-general.php?page=sheep-member-authorisation | 1,162 | 2.06 | 62.41 | 92.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/member-authorisation-for-sheep-crm/admin/templates/admin-settings.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: sheepcrm, members, sheep crm, sheep, membership...
member-authorisation-for-sheep-crm/sheep-member-authorisation.php 85% from 13 tests
The principal PHP file in "Member authorisation for Sheep CRM" v. 1.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("member-authorisation-for-sheep-crm.php" instead of "sheep-member-authorisation.php")
- Description: The description should be shorter than 140 characters (currently 170 characters long)
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
There were no executable files found in this plugin407 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 122 | 239 | 407 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 10.67 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 2 | 33.33% |
▷ Concrete classes | 4 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 33 | 94.29% |
▷ Public methods | 25 | 71.43% |
▷ Protected methods | 8 | 22.86% |
▷ Private methods | 2 | 5.71% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin