Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼2.35ms] Passed 4 tests
This is a short check of server-side resources used by Eazy Image Slider Block
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 36.55 ▼3.38 |
Dashboard /wp-admin | 3.42 ▲0.11 | 49.12 ▲0.29 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 42.78 ▼2.92 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 84.93 ▼3.40 |
Media Library /wp-admin/upload.php | 3.34 ▲0.10 | 38.52 ▲5.41 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Eazy Image Slider Block
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲46 | 13.60 ▼0.70 | 1.73 ▼0.38 | 41.31 ▼5.71 |
Dashboard /wp-admin | 2,206 ▲15 | 5.84 ▲0.95 | 96.74 ▼22.86 | 40.90 ▼11.34 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.01 | 36.52 ▼2.31 | 34.12 ▼1.88 |
Add New Post /wp-admin/post-new.php | 6,588 ▲5,055 | 29.26 ▲5.89 | 889.75 ▲208.12 | 57.07 ▼3.88 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.25 ▲0.05 | 96.48 ▼7.47 | 41.48 ▼5.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_unique_id() in wp-content/plugins/eazy-image-slider-block/includes/Blocks/ImageSlider/view.php:20
- > PHP Warning
array_intersect_key(): Expected parameter 1 to be an array, null given in wp-content/plugins/eazy-image-slider-block/includes/Blocks/ImageSlider/view.php on line 17
- > PHP Fatal error
Trait 'tkiss\\EazyImageSliderBlock\\Traits\\Singleton' not found in wp-content/plugins/eazy-image-slider-block/includes/Blocks/Blocks.php on line 19
- > PHP Notice
Undefined variable: attributes in wp-content/plugins/eazy-image-slider-block/includes/Blocks/ImageSlider/view.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/eazy-image-slider-block/vendor/cjstroud/classnames-php/tests/ClassNamesTest.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
10 plugin tags: image, tk, easy, simple, gallery...
eazy-image-slider-block/eazy-image-slider-block.php 92% from 13 tests
The entry point to "Eazy Image Slider Block" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to 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 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,270 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 228 | 538 | 901 |
JSON | 3 | 0 | 0 | 169 |
Markdown | 2 | 48 | 0 | 105 |
PO File | 1 | 24 | 25 | 69 |
XML | 1 | 0 | 0 | 21 |
JavaScript | 2 | 0 | 12 | 4 |
CSS | 2 | 1 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 20 | 34.48% |
▷ Public methods | 52 | 89.66% |
▷ Protected methods | 4 | 6.90% |
▷ Private methods | 2 | 3.45% |
Functions | 15 | |
▷ Named functions | 10 | 66.67% |
▷ Anonymous functions | 5 | 33.33% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin