Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/camera-slideshow/lib/camera_functions.php+36
Trying to access array offset on value of type null
Server metrics [RAM: ▲0.66MB] [CPU: ▼289.67ms] Passed 4 tests
Server-side resources used by Camera slideshow
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.24 ▲0.73 | 72.02 ▼5.16 |
Dashboard /wp-admin | 4.09 ▲0.68 | 54.41 ▲19.11 |
Posts /wp-admin/edit.php | 4.31 ▲0.68 | 54.92 ▲16.98 |
Add New Post /wp-admin/post-new.php | 7.56 ▲0.60 | 110.51 ▼1,189.62 |
Media Library /wp-admin/upload.php | 3.97 ▲0.68 | 46.56 ▲20.11 |
Add/remove slideshows /wp-admin/admin.php?page=camera_addremove | 3.96 | 46.57 |
Manage your slideshows /wp-admin/admin.php?page=camera_manage | 3.96 | 94.72 |
Dynamic slideshows /wp-admin/admin.php?page=camera_dynamic | 3.93 | 40.49 |
Camera /wp-admin/admin.php?page=camera_general | 3.96 | 40.45 |
Documentation /wp-admin/admin.php?page=camera_documentation | 3.97 | 40.49 |
Settings /wp-admin/admin.php?page=camera_settings | 3.96 | 75.43 |
Server storage [IO: ▲1.60MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 119 new files
Database: 1 new table, no new options
New tables |
---|
wp_camera |
Browser metrics Passed 4 tests
Checking browser requirements for Camera slideshow
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,846 ▲92 | 15.54 ▲0.38 | 7.02 ▲0.65 | 2.57 ▼0.36 |
Dashboard /wp-admin | 2,949 ▲92 | 7.00 ▲0.87 | 122.88 ▼8.11 | 172.62 ▲9.29 |
Posts /wp-admin/edit.php | 2,763 ▲106 | 3.35 ▲0.12 | 66.63 ▲1.70 | 166.89 ▲24.25 |
Add New Post /wp-admin/post-new.php | 1,816 ▲105 | 21.89 ▲0.72 | 459.20 ▲8.32 | 197.99 ▼4.93 |
Media Library /wp-admin/upload.php | 1,767 ▲75 | 5.98 ▲0.51 | 130.07 ▼20.37 | 212.42 ▼4.09 |
Add/remove slideshows /wp-admin/admin.php?page=camera_addremove | 1,241 | 3.68 | 79.52 | 113.71 |
Manage your slideshows /wp-admin/admin.php?page=camera_manage | 1,230 | 3.66 | 78.36 | 93.39 |
Dynamic slideshows /wp-admin/admin.php?page=camera_dynamic | 3,935 | 3.69 | 105.16 | 163.09 |
Camera /wp-admin/admin.php?page=camera_general | 1,369 | 3.73 | 79.20 | 159.40 |
Documentation /wp-admin/admin.php?page=camera_documentation | 2,329 | 3.69 | 70.06 | 161.11 |
Settings /wp-admin/admin.php?page=camera_settings | 2,046 | 3.78 | 69.13 | 232.28 |
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
- Zombie tables were found after uninstall: 1 table
- wp_camera
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)
These errors were triggered by the plugin
- 134 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=camera_dynamic
- > Notice in wp-content/plugins/camera-slideshow/lib/admin/camera_dynamicslideshows.php+942
Undefined index: slideshow
- > GET request to /wp-admin/admin.php?page=camera_dynamic
- > Notice in wp-content/plugins/camera-slideshow/lib/camera_functions.php+36
Trying to access array offset on value of type null
- 67 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=camera_dynamic
- > Notice in wp-content/plugins/camera-slideshow/lib/admin/camera_dynamicslideshows.php+662
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
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/camera-slideshow/index.php:13
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/camera-slideshow/index.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/camera-slideshow/lib/camera_menu.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/camera-slideshow/lib/camera_admin.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function camera_get_option() in wp-content/plugins/camera-slideshow/lib/meta/camera_meta.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/camera-slideshow/lib/camera_functions.php:8
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=camera_settings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,thickbox,farbtastic&ver=5.9.2 1:31592 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/camera-slideshow/scripts/camera.admin.js?ver=5.9.2:9:26)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,thickbox,farbtastic&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,thickbox,farbtastic&ver=5.9.2:2:30340)" undefined
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=camera_settings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,thickbox,farbtastic&ver=5.9.2 1:31592 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/camera-slideshow/scripts/camera.admin.js?ver=5.9.2:70:25)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,thickbox,farbtastic&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,thickbox,farbtastic&ver=5.9.2:2:30340)" undefined
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=camera_settings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,thickbox,farbtastic&ver=5.9.2 1:31592 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/camera-slideshow/scripts/camera.admin.js?ver=5.9.2:98:37)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,thickbox,farbtastic&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,thickbox,farbtastic&ver=5.9.2:2:30340)" undefined
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=camera_settings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,thickbox,farbtastic&ver=5.9.2 1:31592 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/camera-slideshow/scripts/camera.admin.js?ver=5.9.2:341:61)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,thickbox,farbtastic&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,thickbox,farbtastic&ver=5.9.2:2:30340)" undefined
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=camera_settings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,thickbox,farbtastic&ver=5.9.2 1:31592 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/camera-slideshow/scripts/camera.admin.js?ver=5.9.2:412:30)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,thickbox,farbtastic&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,thickbox,farbtastic&ver=5.9.2:2:30340)" undefined
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=camera_settings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,thickbox,farbtastic&ver=5.9.2 1:31592 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/camera-slideshow/scripts/camera.admin.js?ver=5.9.2:435:33)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,thickbox,farbtastic&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,thickbox,farbtastic&ver=5.9.2:2:30340)" undefined
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=camera_settings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,thickbox,farbtastic&ver=5.9.2 1:31592 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/camera-slideshow/scripts/camera.admin.js?ver=5.9.2:823:34)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,thickbox,farbtastic&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,thickbox,farbtastic&ver=5.9.2:2:30340)" undefined
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=camera_settings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,thickbox,farbtastic&ver=5.9.2 1:31592 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'msie')" "TypeError: Cannot read properties of undefined (reading 'msie')\n at fakeSelect (/wp-content/plugins/camera-slideshow/scripts/camera.admin.js?ver=5.9.2:894:23)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/camera-slideshow/scripts/camera.admin.js?ver=5.9.2:923:2)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,thickbox,farbtastic&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,thickbox,farbtastic&ver=5.9.2:2:30340)" undefined
- 42 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=camera_settings
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,thickbox,farbtastic&ver=5.9.2 1:31702 Uncaught TypeError: jQuery(...).live is not a function
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=camera_settings
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,thickbox,farbtastic&ver=5.9.2 1:31702 Uncaught TypeError: Cannot read properties of undefined (reading 'msie')
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (Camera admin panel), #2 (Camera admin panel (2))
camera-slideshow/index.php 92% from 13 tests
The entry point to "Camera slideshow" version 1.4.0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("camera-slideshow.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin13,826 lines of code in 62 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 19 | 626 | 505 | 6,114 |
PHP | 14 | 686 | 248 | 4,507 |
CSS | 12 | 160 | 171 | 3,188 |
XML | 17 | 0 | 0 | 17 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.65 |
Average class complexity | 205.00 |
▷ Minimum class complexity | 205.00 |
▷ Maximum class complexity | 205.00 |
Average method complexity | 6.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 6 | 8.57% |
▷ Public methods | 10 | 14.29% |
▷ Protected methods | 60 | 85.71% |
▷ Private methods | 0 | 0.00% |
Functions | 55 | |
▷ Named functions | 55 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 93 | |
▷ Global constants | 93 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
45 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/select_grid.png | 1.70KB | 0.62KB | ▼ 63.48% |
css/images/menu_icon.png | 1.55KB | 0.76KB | ▼ 50.85% |
css/colorBox1/images/controls.png | 1.22KB | 1.27KB | 0.00% |
css/images/overlay10.png | 0.90KB | 0.10KB | ▼ 88.73% |
css/colorBox4/images/ie6/borderTopRight.png | 0.45KB | 0.53KB | 0.00% |