Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.32ms] Passed 4 tests
Analyzing server-side resources used by Webcam Gallery for WP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.37 ▲0.99 |
Dashboard /wp-admin | 3.32 ▲0.01 | 44.76 ▼7.84 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.36 ▲2.16 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.78 ▼4.60 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.29 ▲2.92 |
Server storage [IO: ▲0.20MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Webcam Gallery for WP
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,896 ▲135 | 13.54 ▼0.81 | 21.45 ▲19.76 | 37.44 ▼4.74 |
Dashboard /wp-admin | 2,207 ▲27 | 5.58 ▼0.02 | 84.96 ▼9.91 | 60.59 ▲18.49 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.00 ▲0.01 | 37.95 ▲1.61 | 35.24 ▼1.98 |
Add New Post /wp-admin/post-new.php | 1,692 ▲161 | 22.56 ▼0.53 | 680.19 ▲11.76 | 55.97 ▲5.34 |
Media Library /wp-admin/upload.php | 1,415 ▲12 | 4.08 ▼0.11 | 99.30 ▼3.45 | 70.68 ▲24.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/webcam-gallery-for-wp/functions.php:119
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webcam-gallery-for-wp/admin.php:65
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/webcam-gallery-for-wp/functions.php:119
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: images, slideshow, gallery, webcam, thumbs
webcam-gallery-for-wp/index.php 92% from 13 tests
This is the main PHP file of "Webcam Gallery for WP" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("webcam-gallery-for-wp.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin356 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 79 | 62 | 250 |
CSS | 3 | 27 | 31 | 77 |
JavaScript | 2 | 18 | 11 | 29 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 19 | |
▷ Global constants | 19 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) media/img/wpcamgallery32.png | 1.78KB | 0.00KB | ▼ 100.00% |
media/img/scrollable/arrow/hori_large.png | 2.46KB | 2.05KB | ▼ 16.80% |
media/img/imseolab-b.png | 13.23KB | 7.53KB | ▼ 43.09% |
media/img/imseo_logo_web.png | 24.07KB | 10.43KB | ▼ 56.64% |
media/img/tooltip/black_arrow.png | 2.08KB | 2.57KB | 0.00% |