Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.18MB] [CPU: ▼384.10ms] Passed 4 tests
This is a short check of server-side resources used by Testimonial or Reviews
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.99 ▲0.27 | 30.39 ▲7.98 |
Dashboard /wp-admin | 3.23 ▲0.17 | 43.11 ▼6.38 |
Posts /wp-admin/edit.php | 3.34 ▲0.23 | 52.10 ▲4.78 |
Add New Post /wp-admin/post-new.php | 5.59 ▲0.16 | 95.24 ▼1,530.06 |
Media Library /wp-admin/upload.php | 3.17 ▲0.16 | 34.13 ▼4.72 |
Testimonial or Reviews /wp-admin/admin.php?page=orphita-testimonial-or-reviews-admin | 3.31 | 32.24 |
Welcome To Accordions or FAQs /wp-admin/index.php?page=orphita-testimonial-or-reviews-welcome | 3.14 | 25.91 |
Settings /wp-admin/admin.php?page=orphita-testimonial-or-reviews-license | 3.14 | 32.25 |
Create New /wp-admin/admin.php?page=orphita-testimonial-or-reviews-admin-new | 3.31 | 34.08 |
Import Templates /wp-admin/admin.php?page=orphita-testimonial-or-reviews-admin-import | 3.31 | 37.29 |
Server storage [IO: ▲3.33MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 92 new files
Database: 3 new tables, 3 new options
New tables |
---|
wp_oxi_div_style |
wp_oxi_div_import |
wp_oxi_div_list |
New WordPress options |
---|
orphita_review_data_active |
widget_orphita_testimonial_or_reviews_widget |
oxi_div_database |
Browser metrics Passed 4 tests
An overview of browser requirements for Testimonial or Reviews
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,744 ▲122 | 15.98 ▲0.46 | 8.30 ▼0.53 | 46.40 ▼4.74 |
Dashboard /wp-admin | 3,001 ▲129 | 5.99 ▼0.04 | 147.60 ▼10.90 | 106.85 ▼7.06 |
Posts /wp-admin/edit.php | 2,753 ▲47 | 2.70 ▲0.01 | 63.14 ▲0.74 | 94.29 ▲0.59 |
Add New Post /wp-admin/post-new.php | 1,684 ▲28 | 18.74 ▲1.70 | 370.33 ▼4.65 | 115.91 ▲6.65 |
Media Library /wp-admin/upload.php | 1,760 ▼12 | 5.00 ▲0.02 | 157.65 ▲3.70 | 113.57 ▲6.69 |
Testimonial or Reviews /wp-admin/admin.php?page=orphita-testimonial-or-reviews-admin | 1,207 | 2.52 | 63.07 | 80.22 |
Welcome To Accordions or FAQs /wp-admin/index.php?page=orphita-testimonial-or-reviews-welcome | 1,104 | 2.09 | 57.49 | 85.83 |
Settings /wp-admin/admin.php?page=orphita-testimonial-or-reviews-license | 1,177 | 2.11 | 59.21 | 79.76 |
Create New /wp-admin/admin.php?page=orphita-testimonial-or-reviews-admin-new | 1,887 | 2.61 | 55.02 | 481.31 |
Import Templates /wp-admin/admin.php?page=orphita-testimonial-or-reviews-admin-import | 3,551 | 2.60 | 54.68 | 212.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 3 tables in the database
- wp_oxi_div_list
- wp_oxi_div_style
- wp_oxi_div_import
- This plugin does not fully uninstall, leaving 3 options in the database
- orphita_review_data_active
- widget_orphita_testimonial_or_reviews_widget
- oxi_div_database
Smoke tests 25% 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 | 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
The following issues need your attention
- 16× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/testimonial-or-reviews/layouts/style9.php
- > /wp-content/plugins/testimonial-or-reviews/layouts/style5.php
- > /wp-content/plugins/testimonial-or-reviews/layouts/style10.php
- > /wp-content/plugins/testimonial-or-reviews/layouts/style1.php
- > /wp-content/plugins/testimonial-or-reviews/layouts/style6.php
- > /wp-content/plugins/testimonial-or-reviews/layouts/style13.php
- > /wp-content/plugins/testimonial-or-reviews/layouts/style7.php
- > /wp-content/plugins/testimonial-or-reviews/layouts/style3.php
- > /wp-content/plugins/testimonial-or-reviews/layouts/style14.php
- > /wp-content/plugins/testimonial-or-reviews/layouts/style12.php
- 42× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/testimonial-or-reviews/layouts/style7.php on line 27
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/testimonial-or-reviews/layouts/style3.php on line 28
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/testimonial-or-reviews/layouts/style8.php on line 7
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/testimonial-or-reviews/layouts/style11.php on line 39
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/testimonial-or-reviews/layouts/style16.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/testimonial-or-reviews/widget.php:13
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/testimonial-or-reviews/layouts/style9.php on line 12
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/testimonial-or-reviews/layouts/style1.php on line 27
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/testimonial-or-reviews/layouts/style9.php on line 60
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/testimonial-or-reviews/layouts/style13.php on line 38
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=orphita-testimonial-or-reviews-admin-import
- > Javascript (severe) in unknown
/wp-content/plugins/testimonial-or-reviews/helper/vendor.js?ver=5.8.1 1:30 Uncaught TypeError: jQuery(...).fontselect is not a function
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: Add a description for screenshot #4 in testimonial-or-reviews/assets to your readme.txt
testimonial-or-reviews/index.php 85% from 13 tests
The primary PHP file in "Testimonial or Reviews" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("testimonial-or-reviews.php" instead of "index.php")
- Description: The description should be shorter than 140 characters (currently 147 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin23,337 lines of code in 79 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 51 | 359 | 161 | 14,200 |
JavaScript | 20 | 504 | 950 | 4,193 |
SVG | 1 | 0 | 0 | 2,671 |
CSS | 7 | 379 | 23 | 2,273 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 5.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 86.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 13.33% |
Functions | 75 | |
▷ Named functions | 75 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin