Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▲0.08ms] Passed 4 tests
An overview of server-side resources used by No Frills Gallery
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 39.67 ▼3.20 |
Dashboard /wp-admin | 3.41 ▲0.11 | 55.58 ▼0.18 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 59.25 ▲7.48 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 106.35 ▲5.21 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.15 ▼1.52 |
NF Gallery /wp-admin/admin.php?page=nfg | 3.33 | 35.33 |
Slideshow Shortcode Generator /wp-admin/admin.php?page=nfg_slideshow_shortcode_generator | 3.32 | 41.99 |
Album Display Shortcode Generator /wp-admin/admin.php?page=nfg_album_shortcode_generator | 3.31 | 36.13 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_nfg_imgs |
wp_nfg_galleries |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
No Frills Gallery: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,978 ▲217 | 14.49 ▼0.15 | 1.96 ▼0.50 | 44.33 ▲5.45 |
Dashboard /wp-admin | 2,362 ▲182 | 6.13 ▲0.46 | 108.77 ▲14.29 | 40.12 ▼4.15 |
Posts /wp-admin/edit.php | 2,290 ▲190 | 3.39 ▲1.45 | 56.34 ▲13.37 | 37.61 ▼0.68 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 23.41 ▲0.06 | 647.44 ▼55.01 | 35.85 ▼26.67 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.20 ▲0.03 | 84.83 ▼29.18 | 44.37 ▼2.82 |
NF Gallery /wp-admin/admin.php?page=nfg | 1,188 | 3.33 | 42.07 | 46.02 |
Slideshow Shortcode Generator /wp-admin/admin.php?page=nfg_slideshow_shortcode_generator | 1,310 | 2.99 | 48.06 | 33.64 |
Album Display Shortcode Generator /wp-admin/admin.php?page=nfg_album_shortcode_generator | 1,160 | 3.13 | 38.82 | 28.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie tables were found after uninstall: 2 tables
- wp_nfg_imgs
- wp_nfg_galleries
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=nfg
- > Notice in wp-content/plugins/no-frills-gallery/admin/nfg-edit-album-admin.php+33
Trying to get property 'thumb' of non-object
- > GET request to /wp-admin/admin.php?page=nfg
- > Notice in wp-content/plugins/no-frills-gallery/admin/nfg-edit-album-admin.php+30
Trying to get property 'nam' of non-object
- > GET request to /wp-admin/admin.php?page=nfg
- > Notice in wp-content/plugins/no-frills-gallery/admin/nfg-edit-album-admin.php+31
Trying to get property 'descr' of non-object
- > GET request to /wp-admin/admin.php?page=nfg
- > Notice in wp-content/plugins/no-frills-gallery/admin/nfg-edit-album-admin.php+35
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/no-frills-gallery/no-frills-gallery.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/no-frills-gallery/admin/nfg-edit-album-admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/no-frills-gallery/admin/nfg-slideshow-shortcode-generator-admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/no-frills-gallery/admin/nfg-album-shortcode-generator-admin.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Plugin Name: You should set the name of your plugin on the first line (
=== No Frills Gallery===
) - Contributors: Plugin contributors not specified
no-frills-gallery/no-frills-gallery.php 92% from 13 tests
"No Frills Gallery" version 1.3.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 174 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin2,717 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 47 | 2 | 702 |
JavaScript | 6 | 196 | 112 | 693 |
PHP | 4 | 439 | 155 | 682 |
SVG | 1 | 0 | 0 | 640 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
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 | 15 | |
▷ Named functions | 15 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/next.png | 1.32KB | 1.58KB | 0.00% |
img/prev.png | 1.33KB | 1.59KB | 0.00% |
img/questionmark.png | 1.07KB | 0.97KB | ▼ 9.36% |
img/close.png | 0.27KB | 0.29KB | 0.00% |