Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- The plugin cannot be installed
- > 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: ▼2.15MB] [CPU: ▼358.67ms] 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.22 ▼1.29 | 5.31 ▼43.80 |
Dashboard /wp-admin | 2.24 ▼1.17 | 4.38 ▼32.24 |
Posts /wp-admin/edit.php | 2.24 ▼1.40 | 5.01 ▼34.13 |
Add New Post /wp-admin/post-new.php | 2.24 ▼4.73 | 5.59 ▼1,324.52 |
Media Library /wp-admin/upload.php | 2.24 ▼1.06 | 4.56 ▼24.13 |
Slidesets /wp-admin/edit-tags.php?taxonomy=slidesets&post_type=slides | 2.25 | 5.24 |
Settings /wp-admin/edit.php?post_type=slides&page=slides | 2.24 | 7.12 |
Add New /wp-admin/post-new.php?post_type=slides | 2.24 | 4.56 |
All Slides /wp-admin/edit.php?post_type=slides | 2.24 | 5.98 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_afswdgt |
Browser metrics Passed 4 tests
Checking browser requirements for AddFunc Slides
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,820 ▲66 | 16.24 ▲0.61 | 6.78 ▲0.76 | 2.68 ▼0.23 |
Dashboard /wp-admin | 2,934 ▲76 | 6.14 ▼0.07 | 147.66 ▲10.67 | 176.55 ▲15.80 |
Posts /wp-admin/edit.php | 2,735 ▲41 | 3.23 ▼0.01 | 97.88 ▲35.33 | 158.91 ▲15.51 |
Add New Post /wp-admin/post-new.php | 1,789 ▲128 | 22.43 ▲6.44 | 443.35 ▼9.42 | 160.32 ▼24.56 |
Media Library /wp-admin/upload.php | 1,745 ▲47 | 5.49 ▼0.08 | 142.18 ▲3.85 | 188.37 ▼2.83 |
Slidesets /wp-admin/edit-tags.php?taxonomy=slidesets&post_type=slides | 1,661 | 2.68 | 66.00 | 158.68 |
Settings /wp-admin/edit.php?post_type=slides&page=slides | 1,098 | 2.37 | 60.29 | 167.79 |
Add New /wp-admin/post-new.php?post_type=slides | 3,798 | 9.97 | 201.48 | 302.72 |
All Slides /wp-admin/edit.php?post_type=slides | 1,466 | 3.19 | 68.24 | 114.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > 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)`
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_afswdgt
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 75 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=slides
- > POST request to /wp-admin/admin-ajax.php
- > 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
The following issues need your attention
- 5× PHP files trigger server errors when accessed directly:
- > 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 get_option() in wp-content/plugins/addfunc-slides/metaboxes.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addfunc-slides/help-tab.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addfunc-slides/addfunc-slides.php:54
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/post-new.php?post_type=slides
- > Javascript (severe) in unknown
/wp-admin/post-new.php?post_type=slides 2702: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=5.9.2 1:31592 "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=1647251410:4:22)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.9.2:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.9.2:2:30340)" 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=5.9.2 1:31702 Uncaught TypeError: $(...).live is not a function
- > 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=5.9.2 1:31592 "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=5.9.2:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:30340)" 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=5.9.2 1:31702 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate 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
The main file in "AddFunc Slides" v. 2.6 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:
- 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin3,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
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
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% |