Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼11.78ms] Passed 4 tests
A check of server-side resources used by Review Disclaimer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.37 ▼5.82 |
Dashboard /wp-admin | 3.32 ▼0.03 | 43.06 ▼17.63 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.95 ▲1.07 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.23 ▼21.98 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.36 ▼1.67 |
Review Disclaimer /wp-admin/options-general.php?page=oizuledreviewdisclaimer | 3.24 | 31.69 |
Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
oizuled-review-disclaimer |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Review Disclaimer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.30 ▼0.93 | 1.72 ▲0.03 | 41.38 ▼3.70 |
Dashboard /wp-admin | 2,210 ▲19 | 5.83 ▼0.05 | 98.42 ▼14.20 | 41.96 ▼1.15 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.01 ▲0.03 | 35.89 ▼1.16 | 42.52 ▲5.99 |
Add New Post /wp-admin/post-new.php | 6,185 ▲4,662 | 26.04 ▲2.90 | 873.95 ▲232.21 | 59.50 ▲8.25 |
Media Library /wp-admin/upload.php | 1,392 ▲13 | 4.31 ▲0.05 | 98.40 ▼1.73 | 41.22 ▲0.57 |
Review Disclaimer /wp-admin/options-general.php?page=oizuledreviewdisclaimer | 847 | 2.02 | 24.86 | 24.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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 fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/review-disclaimer/blocks/review-disclaimer.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: disclaimer, gutenberg, plugin, shortcode, review
review-disclaimer/review-disclaimer.php Passed 13 tests
The main file in "Review Disclaimer" v. 2.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
99 characters long description:
Use a shortcode or block to quickly insert product or service review disclaimers inside your posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin124 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 14 | 38 | 101 |
JavaScript | 1 | 5 | 18 | 23 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin