Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.30MB] [CPU: ▲2.18ms] Passed 4 tests
A check of server-side resources used by Access
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 43.28 ▲4.39 |
Dashboard /wp-admin | 3.68 ▲0.38 | 47.23 ▼2.33 |
Posts /wp-admin/edit.php | 3.73 ▲0.38 | 49.03 ▲3.22 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.32 | 92.77 ▲9.04 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 38.58 ▲3.42 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Access
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,888 ▲153 | 13.62 ▼0.77 | 5.26 ▲3.56 | 44.92 ▲1.23 |
Dashboard /wp-admin | 2,211 ▲22 | 4.82 ▼0.15 | 110.21 ▼4.79 | 39.06 ▼3.22 |
Posts /wp-admin/edit.php | 2,189 ▲100 | 2.16 ▲0.19 | 42.38 ▲1.19 | 34.38 ▼0.86 |
Add New Post /wp-admin/post-new.php | 6,284 ▲4,770 | 19.08 ▲1.40 | 915.59 ▲235.91 | 54.06 ▲2.47 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.19 ▼0.04 | 99.24 ▼0.38 | 41.98 ▼3.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/leira-access/public/partials/leira-access-public-display.php
- > /wp-content/plugins/leira-access/admin/partials/leira-access-admin-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu_Edit' not found in wp-content/plugins/leira-access/admin/class-leira-access-walker-nav-menu-edit.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Add an image for screenshot #1 (Basic)
leira-access/leira-access.php Passed 13 tests
The principal PHP file in "Access" v. 1.0.4 is loaded by WordPress automatically on each request
104 characters long description:
Restrict your users access to different site sections like navs, widgets, blocks, pages, categories etc.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,637 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 512 | 1,549 | 1,212 |
JavaScript | 5 | 58 | 295 | 247 |
Sass | 1 | 27 | 7 | 111 |
CSS | 2 | 8 | 9 | 67 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 11.16 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 100 | |
▷ Static methods | 3 | 3.00% |
▷ Public methods | 93 | 93.00% |
▷ Protected methods | 6 | 6.00% |
▷ Private methods | 1 | 1.00% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.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