Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.42MB] [CPU: ▼291.20ms] Passed 4 tests
Analyzing server-side resources used by Slideshow, Image Slider by 2J
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.43 | 58.79 ▲10.30 |
Dashboard /wp-admin | 3.83 ▲0.42 | 39.33 ▲5.55 |
Posts /wp-admin/edit.php | 4.06 ▲0.42 | 39.63 ▲1.80 |
Add New Post /wp-admin/post-new.php | 7.36 ▲0.39 | 102.36 ▼1,170.62 |
Media Library /wp-admin/upload.php | 3.77 ▲0.47 | 26.98 ▼1.51 |
SlideShows /wp-admin/edit.php?post_type=twoj_slideshow_post | 3.85 | 31.71 |
Help /wp-admin/edit.php?post_type=twoj_slideshow_post&page=twoj-slideshow-support | 3.71 | 26.30 |
Add Slideshow /wp-admin/post-new.php?post_type=twoj_slideshow_post | 4.89 | 49.79 |
Report /wp-admin/edit.php?post_type=twoj_slideshow_post&page=twoj-slideshow-report | 3.78 | 26.17 |
2J Slideshow Demo /wp-admin/edit.php?post_type=twoj_slideshow_post&page=twoj-slideshow-demo | 3.71 | 23.93 |
Server storage [IO: ▲2.50MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 227 new files
Database: no new tables, 3 new options
New WordPress options |
---|
twojSlideshowVersion |
widget_twoj_widget |
photonic_options |
Browser metrics Passed 4 tests
Slideshow, Image Slider by 2J: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,836 ▲82 | 16.20 ▲0.14 | 5.70 ▼0.01 | 2.52 ▼0.09 |
Dashboard /wp-admin | 2,949 ▲91 | 6.24 ▼0.03 | 118.20 ▼15.46 | 157.06 ▼2.72 |
Posts /wp-admin/edit.php | 2,749 ▲61 | 3.24 ▲0.00 | 64.44 ▲2.55 | 141.30 ▲1.09 |
Add New Post /wp-admin/post-new.php | 1,704 ▲43 | 17.77 ▼3.65 | 411.71 ▲41.83 | 152.17 ▼8.41 |
Media Library /wp-admin/upload.php | 1,755 ▲60 | 5.56 ▲0.11 | 135.54 ▼6.80 | 183.06 ▼6.57 |
SlideShows /wp-admin/edit.php?post_type=twoj_slideshow_post | 1,500 | 3.20 | 62.15 | 129.37 |
Help /wp-admin/edit.php?post_type=twoj_slideshow_post&page=twoj-slideshow-support | 418 | 2.66 | 17.81 | 46.44 |
Add Slideshow /wp-admin/post-new.php?post_type=twoj_slideshow_post | 5,729 | 7.48 | 185.17 | 265.40 |
Report /wp-admin/edit.php?post_type=twoj_slideshow_post&page=twoj-slideshow-report | 1,102 | 2.76 | 53.99 | 118.71 |
2J Slideshow Demo /wp-admin/edit.php?post_type=twoj_slideshow_post&page=twoj-slideshow-demo | 1,862 | 5.92 | 97.59 | 120.12 |
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 does not fully uninstall, leaving 3 options in the database
- twojSlideshowVersion
- photonic_options
- widget_twoj_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/post-new.php?post_type=twoj_slideshow_post
- > Notice in wp-content/plugins/2j-slideshow/cmb2/fields/padding/twojPadding.php+44
Undefined index: enable
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 42× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function new_cmb2_box() in wp-content/plugins/2j-slideshow/inc/options/images.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/2j-slideshow/cmb2/bootstrap.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/2j-slideshow/cmb2/fields/twojtext/cmb-field-twojtext.php:43
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/2j-slideshow/inc/widget.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function new_cmb2_box() in wp-content/plugins/2j-slideshow/inc/options/premium_version.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/2j-slideshow/inc/addons/report/report.init.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/2j-slideshow/cmb2/fields/multisize/twojMultiSize.php:100
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/2j-slideshow/inc/addons/block/init.php:19
- > PHP Warning
Use of undefined constant TWOJ_SLIDESHOW_PATH - assumed 'TWOJ_SLIDESHOW_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/2j-slideshow/inc/addons/block/init.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function new_cmb2_box() in wp-content/plugins/2j-slideshow/inc/options/size.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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:
- Tags: Too many tags (29 tag instead of maximum 10); only the first 5 tags are used in your directory listing
2j-slideshow/2jslideshow.php 92% from 13 tests
The main file in "Slideshow, Image Slider by 2J" v. 1.3.54 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("2j-slideshow.php" instead of "2jslideshow.php")
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
There were no executable files found in this plugin30,704 lines of code in 129 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 24 | 1,157 | 661 | 12,578 |
JavaScript | 39 | 2,558 | 1,192 | 10,865 |
PHP | 57 | 1,394 | 2,034 | 5,273 |
PO File | 5 | 539 | 540 | 1,171 |
SVG | 2 | 0 | 0 | 792 |
Markdown | 1 | 3 | 0 | 21 |
HTML | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 106.00 |
Average method complexity | 3.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 240 | |
▷ Static methods | 17 | 7.08% |
▷ Public methods | 232 | 96.67% |
▷ Protected methods | 3 | 1.25% |
▷ Private methods | 5 | 2.08% |
Functions | 92 | |
▷ Named functions | 92 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 27 | |
▷ Global constants | 25 | 92.59% |
▷ Class constants | 2 | 7.41% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
16 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
cmb2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
cmb2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/twoj_slideshow.png | 3.15KB | 3.22KB | 0.00% |
cmb2/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
cmb2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |