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.03MB] [CPU: ▼1.02ms] Passed 4 tests
A check of server-side resources used by Post Carousel Slider
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.49 ▲1.36 |
Dashboard /wp-admin | 3.34 ▲0.03 | 44.49 ▼7.99 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 44.04 ▼3.42 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 92.64 ▲5.99 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 40.51 ▲7.66 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 18 new options
New WordPress options |
---|
widget_theysaidso_widget |
tn_autoplay |
db_upgraded |
tn_word_limit |
tn_showimage |
tn_maxSlides |
tn_mode |
tn_order |
theysaidso_admin_options |
tn_speed |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Post Carousel Slider
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲167 | 13.44 ▼1.08 | 9.63 ▲8.02 | 41.37 ▼4.15 |
Dashboard /wp-admin | 2,213 ▲36 | 5.56 ▼0.10 | 82.58 ▼18.20 | 68.07 ▲23.48 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 2.12 ▲0.11 | 39.05 ▲2.60 | 28.89 ▼5.94 |
Add New Post /wp-admin/post-new.php | 1,700 ▲172 | 22.30 ▼1.06 | 743.99 ▲44.81 | 77.54 ▲21.70 |
Media Library /wp-admin/upload.php | 1,429 ▲32 | 4.21 ▲0.08 | 110.91 ▲10.34 | 47.58 ▲1.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 18 options in the database
- tn_orderby
- tn_query_post
- tn_word_limit
- widget_recent-comments
- widget_theysaidso_widget
- tn_showimage
- tn_maxSlides
- tn_speed
- can_compress_scripts
- tn_order
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/post-carousel-slider/post-carousel-slider.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/post-carousel-slider/setting.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Please fix this invalid URI: ""
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== post-carousel-slider ===
) - Tags: Please delete some tags, you are using 29 tag instead of maximum 10
post-carousel-slider/post-carousel-slider.php Passed 13 tests
Analyzing the main PHP file in "Post Carousel Slider" version 2.0.1
57 characters long description:
A simple plugin to show a horizontal post carousel silder
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin2,140 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 36 | 51 | 1,153 |
JavaScript | 1 | 67 | 465 | 784 |
PHP | 2 | 37 | 35 | 203 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
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 | 6 | |
▷ Named functions | 6 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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 |
images/icon.png | 0.63KB | 0.61KB | ▼ 3.27% |
(invalid) images/default.png | 2.81KB | 0.00KB | ▼ 100.00% |