Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.51MB] [CPU: ▲5.59ms] Passed 4 tests
Analyzing server-side resources used by Wprong Testimonial Slider
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 47.08 ▲5.65 |
Dashboard /wp-admin | 3.92 ▲0.61 | 58.15 ▲5.79 |
Posts /wp-admin/edit.php | 3.93 ▲0.57 | 56.60 ▲11.73 |
Add New Post /wp-admin/post-new.php | 6.48 ▲0.59 | 94.10 ▲6.57 |
Media Library /wp-admin/upload.php | 3.80 ▲0.58 | 38.25 ▲4.34 |
All Testimonial /wp-admin/edit.php?post_type=testimonial_post | 3.87 | 44.25 |
Testimonial Settings /wp-admin/edit.php?post_type=testimonial_post&page=theme-option | 3.80 | 36.00 |
Add New testimonial /wp-admin/post-new.php?post_type=testimonial_post | 4.28 | 50.13 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 48 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
wprong_general_settings |
wprong_style_settings |
widget_recent-comments |
Browser metrics Passed 4 tests
Wprong Testimonial Slider: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,121 ▲375 | 15.32 ▲0.95 | 6.62 ▲4.75 | 42.91 ▼1.92 |
Dashboard /wp-admin | 2,406 ▲215 | 6.71 ▲1.85 | 126.84 ▲13.61 | 37.61 ▼8.96 |
Posts /wp-admin/edit.php | 2,312 ▲220 | 3.55 ▲1.55 | 51.05 ▲14.91 | 33.05 ▼3.34 |
Add New Post /wp-admin/post-new.php | 1,564 ▲45 | 23.26 ▼0.02 | 587.14 ▼88.34 | 34.24 ▼24.52 |
Media Library /wp-admin/upload.php | 1,451 ▲60 | 4.38 ▲0.21 | 83.45 ▼20.22 | 40.70 ▼3.93 |
All Testimonial /wp-admin/edit.php?post_type=testimonial_post | 1,288 | 3.66 | 48.11 | 27.49 |
Testimonial Settings /wp-admin/edit.php?post_type=testimonial_post&page=theme-option | 1,973 | 4.88 | 99.84 | 26.58 |
Add New testimonial /wp-admin/post-new.php?post_type=testimonial_post | 2,346 | 7.87 | 175.82 | 68.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- wprong_style_settings
- can_compress_scripts
- wprong_general_settings
- widget_recent-comments
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)
Good news, no errors were detected
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
Please fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/wprong-testimonial-slider/public/partials/wprong-testimonial-plugin-public-display.php
- > /wp-content/plugins/wprong-testimonial-slider/admin/partials/wprong-testimonial-plugin-admin-display.php
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wprong-testimonial-slider/public/cmb2/functions.php:68
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wprong-testimonial-slider/public/inc/shortcode-tinymce-button.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wprong-testimonial-slider/public/settings/class.wprong_testimonials.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wprong-testimonial-slider/public/inc/custom_post.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wprong-testimonial-slider/public/cmb2/bootstrap.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wprong-testimonial-slider/public/cmb2/init.php:119
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wprong-testimonial-slider/public/class-wprong-testimonial-plugin-public.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wprong-testimonial-slider/public/inc/short_code.php:74
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wprong-testimonial-slider/public/settings/class.wprong_testimonials.php:30
- > 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/wprong-testimonial-slider/public/class-wprong-testimonial-plugin-public.php on line 15
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/edit.php?post_type=testimonial_post&page=theme-option
- > Rendering (warning) in unknown
/wp-admin/edit.php?post_type=testimonial_post&page=theme-option 161 The specified value "14px" cannot be parsed, or is out of range.
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== wprong-testimonial-slider ===
)
wprong-testimonial-slider/wprong-testimonial-plugin.php 85% from 13 tests
The main file in "Wprong Testimonial Slider" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wprong-testimonial-slider.php" instead of "wprong-testimonial-plugin.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin3,776 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 1,233 | 2,774 | 3,526 |
CSS | 4 | 56 | 33 | 226 |
JavaScript | 5 | 12 | 65 | 24 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 27.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 121.00 |
Average method complexity | 3.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 252 | |
▷ Static methods | 22 | 8.73% |
▷ Public methods | 236 | 93.65% |
▷ Protected methods | 8 | 3.17% |
▷ Private methods | 8 | 3.17% |
Functions | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/js/mce_button.png | 1.34KB | 1.24KB | ▼ 7.30% |
public/images/controls.png | 2.74KB | 1.42KB | ▼ 48.29% |