Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.33ms] Passed 4 tests
Analyzing server-side resources used by Great Caroussel
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 41.12 ▼1.10 |
Dashboard /wp-admin | 3.35 ▲0.05 | 49.63 ▼3.18 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 50.26 ▼3.56 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 98.77 ▼1.49 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 39.28 ▲2.59 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_great_caroussels_contents |
wp_great_caroussels |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Great Caroussel
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲41 | 14.35 ▼0.00 | 1.63 ▼0.19 | 42.52 ▲0.31 |
Dashboard /wp-admin | 2,196 ▲16 | 5.55 ▼0.10 | 86.58 ▼14.77 | 73.24 ▲29.61 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 1.99 ▼0.04 | 39.10 ▲0.52 | 34.75 ▼5.15 |
Add New Post /wp-admin/post-new.php | 1,691 ▲165 | 21.87 ▼1.22 | 735.12 ▲47.44 | 56.77 ▲2.32 |
Media Library /wp-admin/upload.php | 1,413 ▲16 | 4.19 ▲0.02 | 102.55 ▼11.88 | 75.10 ▲17.73 |
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 were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
The following issues need your attention
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/great-caroussel/views/caroussels.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/great-caroussel/great-caroussel.php:19
- > PHP Warning
sizeof(): Parameter must be an array or an object that implements Countable in wp-content/plugins/great-caroussel/views/tpl.php on line 2
- > PHP Notice
Undefined variable: caroussel in wp-content/plugins/great-caroussel/views/tpl.php on line 1
- > PHP Notice
Undefined variable: contents in wp-content/plugins/great-caroussel/views/tpl.php on line 6
- > PHP Notice
Undefined variable: contents in wp-content/plugins/great-caroussel/views/tpl.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/great-caroussel/views/caroussel.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/great-caroussel/views/tpl.php:14
- > PHP Notice
Trying to get property 'id' of non-object in wp-content/plugins/great-caroussel/views/tpl.php on line 1
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/great-caroussel/views/tpl.php on line 6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
great-caroussel/great-caroussel.php 77% from 13 tests
The entry point to "Great Caroussel" version 1.06 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Domain Path: Prefix the domain path with a forward slash character ("/")
- Domain Path: The domain path should use only dashes and lowercase characters ("")
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
Everything looks great! No dangerous files found in this plugin475 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 198 | 36 | 341 |
CSS | 2 | 12 | 0 | 84 |
JavaScript | 1 | 9 | 1 | 50 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 11 | |
▷ Named functions | 11 | 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
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/save.png | 0.54KB | 0.39KB | ▼ 28.11% |
images/icon.png | 0.58KB | 0.41KB | ▼ 28.38% |
images/contents.png | 1.00KB | 0.87KB | ▼ 12.61% |
images/forward.png | 4.39KB | 2.59KB | ▼ 41.04% |
images/back.png | 4.31KB | 2.56KB | ▼ 40.50% |