Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▼6.17ms] Passed 4 tests
Analyzing server-side resources used by Rtd Client Testimonial
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 38.02 ▼3.83 |
Dashboard /wp-admin | 3.69 ▲0.35 | 54.58 ▼4.05 |
Posts /wp-admin/edit.php | 3.71 ▲0.36 | 47.95 ▼2.12 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.34 | 85.53 ▼14.67 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 37.15 ▲4.17 |
All Testimonial /wp-admin/edit.php?post_type=testimonial | 3.59 | 37.12 |
Add New /wp-admin/post-new.php?post_type=testimonial | 4.08 | 49.86 |
Server storage [IO: ▲3.46MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 332 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Rtd Client Testimonial
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲184 | 14.01 ▼0.39 | 5.50 ▲3.64 | 38.61 ▼4.54 |
Dashboard /wp-admin | 2,241 ▲56 | 4.92 ▼0.87 | 102.53 ▼5.43 | 42.12 ▼2.41 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.10 ▲0.04 | 36.01 ▼5.10 | 33.01 ▼4.93 |
Add New Post /wp-admin/post-new.php | 1,553 ▲25 | 18.16 ▼0.05 | 654.08 ▲41.44 | 52.67 ▼5.69 |
Media Library /wp-admin/upload.php | 1,429 ▲41 | 4.29 ▲0.09 | 99.96 ▲2.01 | 42.83 ▼2.84 |
All Testimonial /wp-admin/edit.php?post_type=testimonial | 1,091 | 1.99 | 32.87 | 30.28 |
Add New /wp-admin/post-new.php?post_type=testimonial | 2,520 | 7.87 | 194.76 | 64.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: test_root in wp-content/plugins/rtd-client-testimonial/assets/libs/cmb2/tests/bootstrap.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/rtd-client-testimonial/assets/libs/cmb2/bootstrap.php:17
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/rtd-client-testimonial/assets/libs/cmb2/tests/cmb-tests-base.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rtd-client-testimonial/assets/inc/metabox.php:52
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rtd-client-testimonial/assets/libs/cmb2/init.php:119
- > PHP Warning
require_once(/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/rtd-client-testimonial/assets/libs/cmb2/tests/bootstrap.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/rtd-client-testimonial/assets/libs/cmb2/tests/cmb-tests-base.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/rtd-client-testimonial/assets/libs/cmb2/tests/cmb-tests-base.php:10
- > PHP Fatal error
require_once(): Failed opening required '/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/rtd-client-testimonial/assets/libs/cmb2/tests/bootstrap.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/rtd-client-testimonial/assets/libs/cmb2/tests/cmb-tests-base.php:10
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 81% 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 need to be fixed:
- Donate link: Invalid URI ("")
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: These screenshots require images: #1 (This is the view of the admin panel page), #2 (This is the view of the plugin when you add this in the any page or footer of the post), #3 (This is the view of the plugin when you add this in the widgets in your sites)
rtd-client-testimonial/rtd-testimonial.php 77% from 13 tests
The main PHP file in "Rtd Client Testimonial" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: Please don't use more than 140 characters for the plugin description (currently 315 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rtd-client-testimonial.php" instead of "rtd-testimonial.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected40,377 lines of code in 169 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 119 | 12,614 | 16,209 | 28,917 |
PHP | 23 | 1,393 | 2,272 | 4,603 |
CSS | 7 | 1,053 | 1,056 | 4,086 |
Sass | 11 | 168 | 23 | 1,116 |
SVG | 2 | 0 | 0 | 909 |
JavaScript | 5 | 171 | 124 | 633 |
Bourne Shell | 1 | 19 | 7 | 71 |
Markdown | 1 | 14 | 0 | 42 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 26.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 1 | 4.76% |
▷ Concrete classes | 20 | 95.24% |
▷ Final classes | 0 | 0.00% |
Methods | 313 | |
▷ Static methods | 23 | 7.35% |
▷ Public methods | 299 | 95.53% |
▷ Protected methods | 9 | 2.88% |
▷ Private methods | 5 | 1.60% |
Functions | 29 | |
▷ Named functions | 29 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.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
20 PNG files occupy 0.20MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/libs/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
assets/images/controls.png | 2.74KB | 1.42KB | ▼ 48.29% |
assets/libs/cmb2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/libs/cmb2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
assets/images/next.png | 1.21KB | 0.56KB | ▼ 53.52% |