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
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼3.84ms] Passed 4 tests
An overview of server-side resources used by Temporary Access for users
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 37.89 ▼4.82 |
Dashboard /wp-admin | 3.38 ▲0.03 | 48.47 ▼13.56 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 48.82 ▼0.94 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 132.08 ▲18.12 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 42.50 ▲3.97 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Temporary Access for users: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,909 ▲148 | 13.64 ▼0.73 | 5.60 ▲3.73 | 38.70 ▼3.82 |
Dashboard /wp-admin | 2,235 ▲34 | 4.93 ▼0.02 | 109.94 ▲0.68 | 47.79 ▲4.24 |
Posts /wp-admin/edit.php | 2,115 ▲12 | 2.10 ▲0.06 | 38.20 ▲3.03 | 33.50 ▼2.25 |
Add New Post /wp-admin/post-new.php | 1,536 ▲5 | 23.38 ▲0.37 | 679.90 ▲62.20 | 60.17 ▲4.24 |
Media Library /wp-admin/upload.php | 1,414 ▲14 | 4.29 ▼0.02 | 99.58 ▼1.62 | 43.62 ▼4.19 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/temporary-access-for-users/admin/partials/temporary-access-for-users-admin-display.php
- > /wp-content/plugins/temporary-access-for-users/public/partials/temporary-access-for-users-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
temporary-access-for-users/temporary-access-for-users.php Passed 13 tests
The principal PHP file in "Temporary Access for users" v. 1.0.0 is loaded by WordPress automatically on each request
56 characters long description:
This plugin is used for provide temporary access to user
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected254 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 136 | 579 | 247 |
JavaScript | 2 | 5 | 54 | 7 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 3.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.24% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected