Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-content/plugins/posts-carousel/settings.php+3
var_dump() expects at least 1 parameter, 0 given
Server metrics [RAM: ▼1.96MB] [CPU: ▼54.99ms] Passed 4 tests
Analyzing server-side resources used by Posts Carousel
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.43 ▼38.60 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.48 ▼42.06 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.31 ▼43.12 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.06 ▼96.18 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.55 ▼26.25 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Posts Carousel: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲81 | 13.29 ▼1.11 | 4.22 ▲2.48 | 41.11 ▼3.09 |
Dashboard /wp-admin | 2,225 ▲34 | 4.88 ▲0.01 | 99.98 ▼0.95 | 40.12 ▼4.18 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.01 ▲0.02 | 34.73 ▲1.48 | 34.36 ▼1.90 |
Add New Post /wp-admin/post-new.php | 1,547 ▲28 | 23.24 ▲0.17 | 665.26 ▲16.09 | 53.52 ▲0.57 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.15 ▼0.07 | 95.68 ▼4.09 | 45.90 ▲2.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 cannot be uninstalled
- > Warning in wp-content/plugins/posts-carousel/settings.php+3
var_dump() expects at least 1 parameter, 0 given
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
var_dump() expects at least 1 parameter, 0 given in wp-content/plugins/posts-carousel/settings.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/posts-carousel/settings.php:4
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Donate link: Invalid url: ""
posts-carousel/lnksync-posts-carousel.php 69% from 13 tests
The main PHP script in "Posts Carousel" version 1.0.1 is automatically included on every request by WordPress
The following require your attention:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "5.2")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("posts-carousel.php" instead of "lnksync-posts-carousel.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Requires PHP: The required version number did not match the one declared in readme.txt ("5.4" instead of "7.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin842 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 28 | 13 | 583 |
PHP | 2 | 9 | 17 | 259 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
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 | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
1 PNG file occupies 0.14MB with 0.10MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/premium.png | 146.50KB | 46.54KB | ▼ 68.23% |