Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼8.21ms] Passed 4 tests
This is a short check of server-side resources used by TH Partner Slider
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.81 ▼0.94 |
Dashboard /wp-admin | 3.34 ▲0.04 | 43.29 ▼16.31 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 46.68 ▼3.45 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 90.32 ▼11.98 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 34.99 ▼1.08 |
All Partners /wp-admin/edit.php?post_type=thpp | 3.34 | 37.92 |
Help /wp-admin/edit.php?post_type=thpp&page=thpp_help | 3.23 | 32.02 |
TH Partner Options /wp-admin/options-general.php?page=thpp | 3.24 | 32.08 |
Add New Partner /wp-admin/post-new.php?post_type=thpp | 3.40 | 48.88 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
thpp_plugin_version |
db_upgraded |
can_compress_scripts |
widget_thppsliderwidget |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TH Partner Slider
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲98 | 13.61 ▼0.78 | 2.70 ▲0.96 | 46.47 ▲0.50 |
Dashboard /wp-admin | 2,235 ▲50 | 5.83 ▲0.97 | 103.84 ▼0.40 | 41.02 ▼0.70 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.06 ▼0.07 | 40.44 ▲2.63 | 35.21 ▼0.81 |
Add New Post /wp-admin/post-new.php | 1,562 ▲43 | 23.31 ▲0.08 | 668.48 ▲74.01 | 58.11 ▼10.36 |
Media Library /wp-admin/upload.php | 1,423 ▲38 | 4.19 ▲0.02 | 95.67 ▼6.09 | 42.57 ▼2.78 |
All Partners /wp-admin/edit.php?post_type=thpp | 1,233 | 3.33 | 43.80 | 27.48 |
Help /wp-admin/edit.php?post_type=thpp&page=thpp_help | 1,049 | 2.02 | 25.47 | 30.75 |
TH Partner Options /wp-admin/options-general.php?page=thpp | 822 | 2.06 | 24.30 | 31.64 |
Add New Partner /wp-admin/post-new.php?post_type=thpp | 1,728 | 3.72 | 62.90 | 35.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_thppsliderwidget
- db_upgraded
- widget_recent-posts
- 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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/th-partner-slider/inc/thpp-shortcode.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/th-partner-slider/inc/thpp-setting.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/th-partner-slider/th-partner-slider.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/th-partner-slider/inc/thpp-user.php:25
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/th-partner-slider/inc/thpp-widget.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/th-partner-slider/inc/thpp-types.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/th-partner-slider/inc/thpp-admin.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/th-partner-slider/inc/thpp-post-metabox.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
8 plugin tags: shortcode, slideshow, sidebar, post, panel...
th-partner-slider/th-partner-slider.php 92% from 13 tests
"TH Partner Slider" version 1.2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- 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 not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,288 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 133 | 382 | 719 |
CSS | 2 | 29 | 22 | 368 |
PO File | 1 | 85 | 88 | 184 |
JavaScript | 2 | 1 | 3 | 17 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/screenshot-5.png | 11.91KB | 5.27KB | ▼ 55.76% |
assets/img/controls.png | 2.19KB | 0.95KB | ▼ 56.49% |