Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/ht-request/includes/class-wph-request-service.php+42
Cannot use "parent" when current class scope has no parent
Server metrics [RAM: ▼1.76MB] [CPU: ▼53.64ms] Passed 4 tests
An overview of server-side resources used by WP Request
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.23 ▼1.23 | 5.23 ▼37.79 |
Dashboard /wp-admin | 2.25 ▼1.05 | 7.15 ▼44.04 |
Posts /wp-admin/edit.php | 2.25 ▼1.11 | 6.11 ▼37.32 |
Add New Post /wp-admin/post-new.php | 2.25 ▼3.64 | 6.76 ▼95.39 |
Media Library /wp-admin/upload.php | 2.25 ▼0.98 | 5.39 ▼25.08 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Request
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲141 | 13.96 ▼0.79 | 4.68 ▲2.85 | 40.57 ▼4.81 |
Dashboard /wp-admin | 2,210 ▲19 | 5.85 ▲0.95 | 100.19 ▼4.15 | 39.96 ▲3.79 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▼0.00 | 34.48 ▼8.34 | 33.82 ▼1.76 |
Add New Post /wp-admin/post-new.php | 1,532 ▲4 | 23.33 ▲5.21 | 689.28 ▲68.90 | 66.15 ▲11.90 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.22 ▲0.03 | 96.42 ▲1.46 | 41.66 ▼1.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/ht-request/includes/class-wph-request-service.php+42
Cannot use "parent" when current class scope has no parent
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
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 everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/ht-request/public/partials/wph-request-public-display.php
- > /wp-content/plugins/ht-request/admin/partials/wph-request-admin-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ht-request/shortcodes/wph-request-variables.php:328
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 28 tag instead of maximum 10
ht-request/wp-request.php 85% from 13 tests
The primary PHP file in "WP Request" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important 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
- Main file name: The principal plugin file should be the same as the plugin slug ("ht-request.php" instead of "wp-request.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,018 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 258 | 953 | 1,012 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 21.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 117 | |
▷ Static methods | 37 | 31.62% |
▷ Public methods | 106 | 90.60% |
▷ Protected methods | 5 | 4.27% |
▷ Private methods | 6 | 5.13% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin