Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼1.17ms] Passed 4 tests
Analyzing server-side resources used by Available URL
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 42.64 ▲4.62 |
Dashboard /wp-admin | 3.49 ▲0.19 | 49.26 ▼3.46 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 51.47 ▲1.79 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 92.00 ▼6.47 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 40.74 ▲3.48 |
Available URL /wp-admin/options-general.php?page=availableurl | 3.38 | 35.84 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Available URL
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.31 ▼0.04 | 1.68 ▼0.11 | 42.86 ▲1.84 |
Dashboard /wp-admin | 2,199 ▲19 | 5.58 ▼0.05 | 112.50 ▲25.92 | 38.36 ▼1.78 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 2.00 ▲0.01 | 39.15 ▼2.90 | 34.60 ▲1.53 |
Add New Post /wp-admin/post-new.php | 1,691 ▲165 | 24.47 ▲1.32 | 591.59 ▼17.31 | 50.33 ▼8.33 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.22 ▼0.06 | 93.92 ▼15.36 | 42.21 ▼5.63 |
Available URL /wp-admin/options-general.php?page=availableurl | 1,266 | 2.59 | 42.85 | 30.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
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 | 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 take a closer look at the following
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/available-url/Includes/Templates/url_row.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function AvailableURL\\Backend\\Options\\add_filter() in wp-content/plugins/available-url/Backend/Options/Users.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function AvailableURL\\Backend\\add_action() in wp-content/plugins/available-url/Backend/Menu.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function AvailableURL\\Backend\\Options\\add_filter() in wp-content/plugins/available-url/Backend/Options/Settings.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function AvailableURL\\Backend\\Options\\add_filter() in wp-content/plugins/available-url/Backend/Options/Roles.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function AvailableURL\\add_action() in wp-content/plugins/available-url/available-url.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Screenshot #1 (Available URL Dashboard.) image required
available-url/available-url.php 92% from 13 tests
The principal PHP file in "Available URL" v. 1.4.5.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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 plugin932 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 130 | 90 | 798 |
PO File | 1 | 22 | 26 | 67 |
JavaScript | 3 | 5 | 4 | 46 |
CSS | 3 | 0 | 0 | 21 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 19.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 4.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 12 | 34.29% |
▷ Public methods | 26 | 74.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 25.71% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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