Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/addfunc-slides/addfunc-slides.php+566
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▼1.58MB] [CPU: ▼52.63ms] Passed 4 tests
This is a short check of server-side resources used by AddFunc Slides
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.40 ▼1.06 | 6.09 ▼31.94 |
Dashboard /wp-admin | 2.42 ▼0.88 | 6.39 ▼43.92 |
Posts /wp-admin/edit.php | 2.42 ▼0.93 | 6.36 ▼42.27 |
Add New Post /wp-admin/post-new.php | 2.42 ▼3.46 | 6.38 ▼92.37 |
Media Library /wp-admin/upload.php | 2.42 ▼0.80 | 7.70 ▼27.79 |
Slidesets /wp-admin/edit-tags.php?taxonomy=slidesets&post_type=slides | 2.43 | 7.83 |
Settings /wp-admin/edit.php?post_type=slides&page=slides | 2.43 | 6.32 |
All Slides /wp-admin/edit.php?post_type=slides | 2.43 | 6.44 |
Add New /wp-admin/post-new.php?post_type=slides | 2.42 | 8.05 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_afswdgt |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by AddFunc Slides
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲98 | 14.25 ▼0.30 | 1.82 ▲0.32 | 43.62 ▲5.61 |
Dashboard /wp-admin | 2,230 ▲53 | 5.60 ▲0.01 | 83.57 ▼8.12 | 36.90 ▼0.14 |
Posts /wp-admin/edit.php | 2,135 ▲38 | 2.00 ▼0.01 | 37.03 ▲1.10 | 37.20 ▲2.60 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 23.13 ▲0.27 | 656.97 ▲51.22 | 117.52 ▲49.32 |
Media Library /wp-admin/upload.php | 1,435 ▲35 | 4.22 ▲0.03 | 118.36 ▲8.79 | 50.01 ▲3.36 |
Slidesets /wp-admin/edit-tags.php?taxonomy=slidesets&post_type=slides | 1,309 | 2.12 | 29.77 | 34.01 |
Settings /wp-admin/edit.php?post_type=slides&page=slides | 864 | 2.01 | 32.17 | 30.65 |
All Slides /wp-admin/edit.php?post_type=slides | 1,161 | 1.96 | 33.69 | 32.86 |
Add New /wp-admin/post-new.php?post_type=slides | 2,911 | 8.10 | 191.00 | 83.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/addfunc-slides/addfunc-slides.php+566
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_afswdgt
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 75 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=slides
- > Deprecated in wp-content/plugins/addfunc-slides/addfunc-slides.php+630
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=slides&page=slides
- > Notice in wp-content/plugins/addfunc-slides/settings.php+42
Trying to access array offset on value of type bool
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
Please fix the following items
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/addfunc-slides/metaboxes.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/addfunc-slides/edit-page.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/addfunc-slides/mce-buttons.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addfunc-slides/addfunc-slides.php:54
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addfunc-slides/help-tab.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/edit.php?post_type=slides
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/addfunc-slides/js/addfunc-slides-admin-edit.js:22:21)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/edit.php?post_type=slides
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
- > GET request to /wp-admin/post-new.php?post_type=slides
- > Javascript (severe) in unknown
/wp-admin/post-new.php?post_type=slides 2725:4 Uncaught TypeError: $ is not a function
- > GET request to /wp-admin/post-new.php?post_type=slides
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/addfunc-slides/js/addfunc-slides-admin.js?ver=1697893207:4:22)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=slides
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
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
Please fix the following attributes:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
addfunc-slides/addfunc-slides.php 92% from 13 tests
"AddFunc Slides" version 2.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 196 characters long)
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
Good job! No executable or dangerous file extensions detected3,690 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 92 | 88 | 1,489 |
PHP | 7 | 67 | 104 | 1,406 |
JavaScript | 6 | 21 | 28 | 746 |
SVG | 5 | 0 | 1 | 49 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 206.00 |
▷ Minimum class complexity | 206.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 52.25 |
▷ Minimum method complexity | 3.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 43 | |
▷ Named functions | 43 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/jquery.minicolors.png | 67.02KB | 34.31KB | ▼ 48.80% |