Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.15MB] [CPU: ▼4.30ms] Passed 4 tests
This is a short check of server-side resources used by Portfolio Gallery - Image Gallery Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 48.83 ▲6.85 |
Dashboard /wp-admin | 3.47 ▲0.12 | 46.28 ▼15.18 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 51.17 ▲4.20 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 90.55 ▼6.82 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 35.81 ▲0.59 |
Add New Gallery /wp-admin/post-new.php?post_type=awl_filter_gallery | 3.84 | 49.13 |
Filters /wp-admin/edit.php?post_type=awl_filter_gallery&page=pfg-filter-page | 3.43 | 32.71 |
Docs /wp-admin/edit.php?post_type=awl_filter_gallery&page=sr-doc-page | 3.36 | 28.78 |
All Gallery /wp-admin/edit.php?post_type=awl_filter_gallery | 3.40 | 41.67 |
Server storage [IO: ▲2.31MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 64 new files
Database: no new tables, 7 new options
New WordPress options |
---|
awl_portfolio_filter_gallery_categories |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Portfolio Gallery - Image Gallery Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲146 | 13.81 ▼0.90 | 8.05 ▲6.35 | 38.07 ▼7.15 |
Dashboard /wp-admin | 2,244 ▲70 | 5.53 ▼0.11 | 86.02 ▼6.08 | 80.82 ▲37.34 |
Posts /wp-admin/edit.php | 2,146 ▲46 | 1.99 ▲0.04 | 40.42 ▲1.87 | 35.27 ▲0.61 |
Add New Post /wp-admin/post-new.php | 1,576 ▲47 | 25.09 ▲1.90 | 766.37 ▲157.63 | 40.82 ▼13.07 |
Media Library /wp-admin/upload.php | 1,446 ▲49 | 4.16 ▼0.04 | 101.01 ▲4.40 | 62.94 ▲16.11 |
Add New Gallery /wp-admin/post-new.php?post_type=awl_filter_gallery | 3,624 | 4.88 | 108.27 | 128.41 |
Filters /wp-admin/edit.php?post_type=awl_filter_gallery&page=pfg-filter-page | 1,082 | 1.66 | 28.99 | 32.09 |
Docs /wp-admin/edit.php?post_type=awl_filter_gallery&page=sr-doc-page | 1,472 | 9.73 | 262.35 | 77.84 |
All Gallery /wp-admin/edit.php?post_type=awl_filter_gallery | 1,124 | 1.90 | 32.01 | 30.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- awl_portfolio_filter_gallery_categories
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/edit.php?post_type=awl_filter_gallery
- > Notice in wp-content/plugins/portfolio-filter-gallery/portfolio-filter-gallery.php+146
Undefined variable: columns
- > GET request to /wp-admin/edit.php?post_type=awl_filter_gallery
- > Notice in wp-content/plugins/portfolio-filter-gallery/portfolio-filter-gallery.php+146
Trying to access array offset on value of type null
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
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/portfolio-filter-gallery/update-old-settings.php
- > /wp-content/plugins/portfolio-filter-gallery/docs.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: portfolio, gallery, wordpress portfolio plugin, responsive, portfolio gallery
portfolio-filter-gallery/portfolio-filter-gallery.php Passed 13 tests
This is the main PHP file of "Portfolio Gallery - Image Gallery Plugin" version 1.5.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
39 characters long description:
Portfolio Filter Gallery For WordPress.
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
Good job! No executable or dangerous file extensions detected31,167 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 13 | 2,911 | 991 | 21,458 |
JavaScript | 10 | 1,180 | 619 | 5,419 |
PHP | 7 | 225 | 151 | 2,256 |
PO File | 2 | 506 | 823 | 1,061 |
SVG | 2 | 0 | 0 | 973 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 91.30% |
▷ Protected methods | 2 | 8.70% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
10 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/close.png | 0.32KB | 0.23KB | ▼ 28.22% |
lightbox/ld-lightbox/images/close.png | 0.27KB | 0.29KB | 0.00% |
lightbox/ld-lightbox/images/next.png | 1.32KB | 1.58KB | 0.00% |
img/close-icon-white.png | 0.99KB | 0.61KB | ▼ 38.80% |
img/video-play-button-icon.png | 1.47KB | 0.39KB | ▼ 73.42% |