Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.76ms] Passed 4 tests
Analyzing server-side resources used by Just In Case Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 43.34 ▲3.19 |
Dashboard /wp-admin | 3.34 ▲0.04 | 53.09 ▲0.31 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 48.38 ▲0.77 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 85.78 ▼13.83 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 38.99 ▲1.70 |
Just In Case Gallery /wp-admin/options-general.php?page=test-setting-admin | 3.21 | 31.83 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Just In Case Gallery
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,995 ▲209 | 14.08 ▼0.32 | 6.48 ▲4.30 | 41.87 ▼2.07 |
Dashboard /wp-admin | 2,228 ▲25 | 4.85 ▼0.06 | 113.50 ▲2.18 | 42.23 ▼1.76 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.12 ▲0.10 | 36.06 ▼1.65 | 37.03 ▲3.25 |
Add New Post /wp-admin/post-new.php | 1,548 ▼6 | 23.56 ▲0.86 | 630.04 ▼50.67 | 56.87 ▲0.72 |
Media Library /wp-admin/upload.php | 1,404 ▲10 | 4.31 ▲0.10 | 98.03 ▼9.53 | 41.65 ▼4.64 |
Just In Case Gallery /wp-admin/options-general.php?page=test-setting-admin | 797 | 2.02 | 25.05 | 29.66 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% 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/options-general.php?page=test-setting-admin
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=test-setting-admin
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% 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 items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/just-in-case-gallery/options.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/just-in-case-gallery/just-in-case-gallery.php:112
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Donate link: Invalid URI found ("")
just-in-case-gallery/just-in-case-gallery.php Passed 13 tests
The primary PHP file in "Just In Case Gallery" version 0.5 is used by WordPress to initiate all plugin functionality
31 characters long description:
Creates a nice lightbox gallery
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin888 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 60 | 170 | 547 |
PHP | 2 | 49 | 45 | 218 |
CSS | 1 | 14 | 9 | 123 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/arrow-right.png | 1.37KB | 0.67KB | ▼ 50.79% |
img/arrow-left.png | 1.36KB | 0.68KB | ▼ 50.36% |
img/arrow-left-hover.png | 5.81KB | 3.89KB | ▼ 33.04% |
img/icon-close.png | 0.99KB | 0.68KB | ▼ 31.49% |
img/icon-close-hover.png | 2.69KB | 2.53KB | ▼ 6.20% |