Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.52MB] [CPU: ▲4.49ms] Passed 4 tests
An overview of server-side resources used by Grid Gallery - Photo Image Grid Gallery
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.01 ▲0.54 | 48.33 ▲11.90 |
Dashboard /wp-admin | 3.88 ▲0.53 | 50.87 ▼9.01 |
Posts /wp-admin/edit.php | 3.93 ▲0.57 | 54.66 ▲8.80 |
Add New Post /wp-admin/post-new.php | 6.40 ▲0.51 | 89.39 ▲8.40 |
Media Library /wp-admin/upload.php | 3.74 ▲0.51 | 47.25 ▲9.75 |
Our Theme /wp-admin/edit.php?post_type=grid_gallery&page=sr-theme-page | 3.72 | 37.34 |
Featured Plugins /wp-admin/edit.php?post_type=grid_gallery&page=sr-featured-plugins-page | 3.93 | 498.01 |
All Grid Gallery /wp-admin/edit.php?post_type=grid_gallery | 3.74 | 37.14 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 3.81 | 35.57 |
Upgrade Plugin /wp-admin/edit.php?post_type=grid_gallery&page=sr-upgrade-plugins-page | 3.73 | 36.31 |
Add Grid Gallery /wp-admin/post-new.php?post_type=grid_gallery | 3.97 | 51.67 |
Docs /wp-admin/edit.php?post_type=grid_gallery&page=sr-doc-page | 3.71 | 37.70 |
Server storage [IO: ▲4.61MB] [DB: ▲0.54MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 63 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Grid Gallery - Photo Image Grid Gallery
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,977 ▲191 | 13.83 ▼0.52 | 8.07 ▲6.25 | 37.56 ▼1.24 |
Dashboard /wp-admin | 2,276 ▲106 | 5.57 ▲0.03 | 83.14 ▼12.25 | 41.57 ▲2.26 |
Posts /wp-admin/edit.php | 2,193 ▲93 | 2.07 ▲0.09 | 39.98 ▲6.81 | 42.15 ▲7.81 |
Add New Post /wp-admin/post-new.php | 1,599 ▲71 | 23.02 ▼0.07 | 679.48 ▲2.18 | 50.31 ▼5.51 |
Media Library /wp-admin/upload.php | 1,489 ▲86 | 4.14 ▼0.07 | 112.68 ▲18.90 | 55.06 ▲14.62 |
Our Theme /wp-admin/edit.php?post_type=grid_gallery&page=sr-theme-page | 1,014 | 2.34 | 29.37 | 83.52 |
Featured Plugins /wp-admin/edit.php?post_type=grid_gallery&page=sr-featured-plugins-page | 3,469 | 1.78 | 43.93 | 197.67 |
All Grid Gallery /wp-admin/edit.php?post_type=grid_gallery | 1,168 | 1.98 | 32.57 | 33.59 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 1,088 | 2.06 | 22.59 | 31.28 |
Upgrade Plugin /wp-admin/edit.php?post_type=grid_gallery&page=sr-upgrade-plugins-page | 1,021 | 2.06 | 24.63 | 59.19 |
Add Grid Gallery /wp-admin/post-new.php?post_type=grid_gallery | 2,419 | 4.18 | 78.11 | 161.37 |
Docs /wp-admin/edit.php?post_type=grid_gallery&page=sr-doc-page | 949 | 2.02 | 29.14 | 44.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.55MB] 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: 6 options
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/edit.php?post_type=grid_gallery
- > Notice in wp-content/plugins/new-grid-gallery/grid-gallery.php+100
Undefined variable: columns
- > GET request to /wp-admin/edit.php?post_type=grid_gallery
- > Notice in wp-content/plugins/new-grid-gallery/grid-gallery.php+100
Trying to access array offset on value of type null
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=grid_gallery&page=sr-doc-page
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/new-grid-gallery/featured-plugins/featured-plugins.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/new-grid-gallery/our-theme/awp-theme.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/edit.php?post_type=grid_gallery&page=sr-featured-plugins-page
- > Network (severe)
wp-content/plugins/new-grid-gallery/js/bootstrap.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=grid_gallery&page=sr-featured-plugins-page
- > Network (severe)
wp-content/plugins/new-grid-gallery/js/featured-plugins/acl-media-upload-script.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=grid_gallery&page=sr-featured-plugins-page
- > Network (severe)
wp-content/plugins/new-grid-gallery/js/featured-plugins/bootstrap.min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=grid_gallery&page=sr-featured-plugins-page
- > Network (severe)
wp-content/plugins/new-grid-gallery/featured-plugins/fonts/bootstrap/glyphicons-halflings-regular-2.html - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=grid_gallery&page=sr-featured-plugins-page
- > Network (severe)
wp-content/plugins/new-grid-gallery/featured-plugins/fonts/bootstrap/glyphicons-halflings-regular-3.html - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: portfolio gallery, grid gallery, image gallery, wordpress gallery plugin, photo gallery
new-grid-gallery/grid-gallery.php 85% from 13 tests
The principal PHP file in "Grid Gallery - Photo Image Grid Gallery" v. 1.3.8 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("new-grid-gallery.php" instead of "grid-gallery.php")
- Text Domain: The text domain should only use lowercase characters and dashes
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
No dangerous file extensions were detected34,409 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 14 | 1,965 | 1,980 | 28,723 |
PHP | 9 | 626 | 1,722 | 3,625 |
SVG | 3 | 0 | 0 | 1,628 |
PO File | 1 | 150 | 151 | 340 |
JavaScript | 7 | 8 | 42 | 93 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 43.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 122 | |
▷ Static methods | 5 | 4.10% |
▷ Public methods | 97 | 79.51% |
▷ Protected methods | 25 | 20.49% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 7 | 70.00% |
▷ Class constants | 3 | 30.00% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 1.29MB with 0.81MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/new-slide.png | 2.54KB | 1.19KB | ▼ 53.21% |
img/grid-gallery-responsive.png | 1,012.00KB | 304.66KB | ▼ 69.90% |
img/2017-12-09_17-58-48.png | 92.91KB | 29.79KB | ▼ 67.93% |
our-theme/img/aneeq-premium.png | 165.42KB | 57.84KB | ▼ 65.04% |
img/pricing-table.png | 52.90KB | 22.60KB | ▼ 57.28% |