Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼0.81ms] Passed 4 tests
Server-side resources used by Simple Gallery with Filter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 39.19 ▲0.80 |
Dashboard /wp-admin | 3.34 ▲0.04 | 50.93 ▲0.71 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 49.43 ▲0.67 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 86.26 ▼2.41 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.81 ▼2.22 |
Gallery /wp-admin/edit.php?post_type=sgwf_gallery | 3.31 | 36.51 |
Category /wp-admin/edit-tags.php?taxonomy=sgwf_cat&post_type=sgwf_gallery | 3.26 | 36.68 |
Add New /wp-admin/post-new.php?post_type=sgwf_gallery | 3.38 | 52.38 |
Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_sfwf_gallerymain_widget |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Gallery with Filter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲88 | 14.35 ▲0.00 | 2.45 ▲0.57 | 41.79 ▼8.66 |
Dashboard /wp-admin | 2,244 ▲64 | 5.65 ▼0.05 | 90.03 ▲6.13 | 37.86 ▼6.27 |
Posts /wp-admin/edit.php | 2,149 ▲49 | 2.01 ▲0.05 | 40.50 ▲1.66 | 37.15 ▼3.62 |
Add New Post /wp-admin/post-new.php | 1,567 ▲41 | 23.31 ▲0.07 | 661.38 ▼67.23 | 71.18 ▲11.98 |
Media Library /wp-admin/upload.php | 1,449 ▲49 | 4.20 ▲0.01 | 98.25 ▼8.85 | 42.85 ▼2.73 |
Gallery /wp-admin/edit.php?post_type=sgwf_gallery | 1,113 | 1.96 | 33.85 | 33.53 |
Category /wp-admin/edit-tags.php?taxonomy=sgwf_cat&post_type=sgwf_gallery | 1,320 | 2.12 | 26.64 | 29.76 |
Add New /wp-admin/post-new.php?post_type=sgwf_gallery | 2,315 | 7.57 | 167.19 | 65.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_sfwf_gallerymain_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-gallery-with-filter/simple-gallery-with-filter.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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
6 plugin tags: lightbox gallery, popup filter gallery, gallery, portfolio filter, wordpress responsive gallery...
simple-gallery-with-filter/simple-gallery-with-filter.php 85% from 13 tests
The entry point to "Simple Gallery with Filter" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 182 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin377 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 57 | 16 | 249 |
CSS | 3 | 39 | 2 | 112 |
JavaScript | 2 | 3 | 0 | 15 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 4.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 8 | |
▷ Named functions | 8 | 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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/nopic.png | 0.50KB | 0.48KB | ▼ 4.48% |
assets/img/icons.png | 0.71KB | 0.43KB | ▼ 39.64% |