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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.26MB] [CPU: ▼4.26ms] Passed 4 tests
Analyzing server-side resources used by SliceShow
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.32 | 49.76 ▲1.61 |
Dashboard /wp-admin | 3.88 ▲0.25 | 54.80 ▼8.16 |
Posts /wp-admin/edit.php | 3.93 ▲0.25 | 53.90 ▲1.19 |
Add New Post /wp-admin/post-new.php | 6.42 ▲0.28 | 100.31 ▼10.82 |
Media Library /wp-admin/upload.php | 3.74 ▲0.25 | 42.66 ▲0.75 |
Add New /wp-admin/post-new.php?post_type=sliceshow | 3.75 | 45.44 |
All Slideshows /wp-admin/edit.php?post_type=sliceshow | 3.85 | 42.52 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
SliceShow: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,931 ▲170 | 13.60 ▼0.78 | 10.75 ▲8.77 | 43.67 ▲1.51 |
Dashboard /wp-admin | 2,229 ▲49 | 5.72 ▲0.05 | 89.46 ▼2.53 | 39.77 ▼4.35 |
Posts /wp-admin/edit.php | 2,147 ▲47 | 2.33 ▲0.21 | 37.90 ▼3.79 | 33.16 ▼1.45 |
Add New Post /wp-admin/post-new.php | 1,560 ▲28 | 23.47 ▲0.09 | 646.73 ▲26.22 | 68.54 ▲23.51 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.30 ▲0.09 | 103.22 ▼2.58 | 41.94 ▼1.16 |
Add New /wp-admin/post-new.php?post_type=sliceshow | 1,796 | 2.76 | 54.53 | 80.42 |
All Slideshows /wp-admin/edit.php?post_type=sliceshow | 1,064 | 2.25 | 32.76 | 27.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/post-new.php?post_type=sliceshow
- > Deprecated in wp-content/plugins/sliceshow/lib/sliceshow.meta-box.class.php+98
Non-static method SliceShow_Helper::sliceshow_shortcode_shortcut() should not be called statically
SRP 0% 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
Please fix the following
- 8× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/sliceshow/lib/meta-fields/slide-text-title.inc.php
- > /wp-content/plugins/sliceshow/lib/meta-fields/text.inc.php
- > /wp-content/plugins/sliceshow/lib/meta-fields/slide-hidden.inc.php
- > /wp-content/plugins/sliceshow/lib/meta-fields/slide-text-url.inc.php
- > /wp-content/plugins/sliceshow/lib/meta-fields/select.inc.php
- > /wp-content/plugins/sliceshow/lib/meta-fields/slide-text.inc.php
- > /wp-content/plugins/sliceshow/lib/meta-fields/radio.inc.php
- > /wp-content/plugins/sliceshow/lib/meta-fields/textarea.inc.php
- 96× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/sliceshow/lib/meta-fields/textarea.inc.php on line 3
- > PHP Notice
Undefined variable: field in wp-content/plugins/sliceshow/lib/meta-fields/text.inc.php on line 2
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/sliceshow/lib/meta-fields/radio.inc.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/sliceshow/lib/meta-fields/select.inc.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/sliceshow/lib/meta-fields/select.inc.php on line 9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/sliceshow/lib/meta-fields/slide-text.inc.php on line 2
- > PHP Notice
Undefined variable: sk in wp-content/plugins/sliceshow/lib/meta-fields/slide-text.inc.php on line 1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/sliceshow/lib/meta-fields/textarea.inc.php on line 2
- > PHP Notice
Undefined variable: gk in wp-content/plugins/sliceshow/lib/meta-fields/slide-text.inc.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sliceshow/lib/sliceshow.public.class.php:25
- > PHP Notice
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 90% from 29 tests
readme.txt 88% 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: Invalid URI found ("")
- Tags: You are using too many tags: 12 tag instead of maximum 10
sliceshow/slice-show.php 92% from 13 tests
"SliceShow" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("sliceshow.php" instead of "slice-show.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin3,193 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 147 | 154 | 1,525 |
PHP | 18 | 289 | 282 | 1,417 |
CSS | 3 | 14 | 26 | 251 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 21.14 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 71.00 |
Average method complexity | 3.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 1 | 1.82% |
▷ Public methods | 46 | 83.64% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 16.36% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
8 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-sliceshow-32.png | 1.32KB | 1.20KB | ▼ 9.37% |
images/icon-trash.png | 77.62KB | 0.29KB | ▼ 99.63% |
images/icon-sort-handle.png | 0.26KB | 0.15KB | ▼ 44.28% |
images/icon-sliceshow-menu.png | 1.43KB | 1.23KB | ▼ 14.00% |
images/sliceshow-arrows-default.png | 0.68KB | 0.31KB | ▼ 54.44% |