Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.54MB] [CPU: ▼17.59ms] Passed 4 tests
An overview of server-side resources used by AccessType
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.16 | 43.20 ▲1.53 |
Dashboard /wp-admin | 3.48 ▲0.14 | 50.62 ▼4.08 |
Posts /wp-admin/edit.php | 3.60 ▲0.20 | 50.49 ▼3.14 |
Add New Post /wp-admin/post-new.php | 3.36 ▼2.57 | 38.26 ▼62.08 |
Media Library /wp-admin/upload.php | 3.41 ▲0.14 | 36.89 ▼1.05 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 13 new options
New WordPress options |
---|
accesstype-env |
db_upgraded |
accesstype-plan-heading |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
accesstype-lead-in-elements |
widget_recent-comments |
accesstype-secondary-color |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
AccessType: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,911 ▲150 | 13.93 ▼0.42 | 12.33 ▲10.41 | 40.32 ▼6.30 |
Dashboard /wp-admin | 2,268 ▲88 | 5.80 ▲0.19 | 91.89 ▼0.34 | 36.79 ▼0.82 |
Posts /wp-admin/edit.php | 2,264 ▲164 | 2.34 ▲0.32 | 38.87 ▼2.83 | 34.79 ▼1.38 |
Add New Post /wp-admin/post-new.php | 6,289 ▲4,761 | 26.31 ▲3.09 | 911.44 ▲247.19 | 63.83 ▲7.44 |
Media Library /wp-admin/upload.php | 1,480 ▲80 | 4.47 ▲0.24 | 100.22 ▼2.62 | 40.68 ▼2.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- theysaidso_admin_options
- accesstype-plan-sub-heading
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- accesstype-plan-heading
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/accesstype/accesstype.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/accesstype/includes/functions/metaboxes.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/accesstype/includes/functions/accesstype_admin.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/accesstype/includes/functions/accesstype_visibility.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/accesstype/includes/functions/functions.php:51
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/accesstype/includes/apis.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/accesstype/includes/shortcodes.php:41
- > 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)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Contributors: The plugin contributors field is not present
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in accesstype/assets to your readme.txt
accesstype/accesstype.php 92% from 13 tests
The entry point to "AccessType" version 1.0.5 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
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
Success! There were no dangerous files found in this plugin1,258 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 158 | 386 | 989 |
CSS | 1 | 31 | 0 | 151 |
JavaScript | 4 | 16 | 17 | 118 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 4.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 18 | 100.00% |
▷ Public methods | 8 | 44.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 55.56% |
Functions | 24 | |
▷ Named functions | 23 | 95.83% |
▷ Anonymous functions | 1 | 4.17% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.00% |
▷ Public constants | 3 | 100.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