Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼132.32ms] Passed 4 tests
An overview of server-side resources used by Kento Simple Fancy Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.16 | 35.31 ▲14.10 |
Dashboard /wp-admin | 3.12 ▲0.06 | 47.42 ▲3.05 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 46.81 ▲10.43 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.04 | 92.59 ▼537.17 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 29.63 ▼5.58 |
Fancy Gallery /wp-admin/edit.php?post_type=lazy_gallery | 3.10 | 34.73 |
Fancy Gallery Option /wp-admin/edit.php?post_type=lazy_gallery&page=kt_lazy_photo_gallery_option_settings | 3.04 | 29.50 |
Add New Photo /wp-admin/post-new.php?post_type=lazy_gallery | 3.13 | 46.43 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Kento Simple Fancy Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,925 ▲319 | 16.82 ▲1.28 | 19.95 ▲11.32 | 45.44 ▼8.05 |
Dashboard /wp-admin | 3,036 ▲105 | 6.62 ▲0.63 | 133.54 ▼8.65 | 126.83 ▲17.79 |
Posts /wp-admin/edit.php | 2,797 ▲58 | 3.13 ▲0.41 | 67.07 ▲0.43 | 83.30 ▼7.48 |
Add New Post /wp-admin/post-new.php | 1,721 ▲51 | 18.76 ▼0.37 | 362.73 ▼30.92 | 114.44 ▼5.82 |
Media Library /wp-admin/upload.php | 1,818 ▲8 | 5.41 ▲0.38 | 128.23 ▼28.23 | 157.22 ▲38.39 |
Fancy Gallery /wp-admin/edit.php?post_type=lazy_gallery | 1,468 | 3.04 | 66.30 | 81.92 |
Fancy Gallery Option /wp-admin/edit.php?post_type=lazy_gallery&page=kt_lazy_photo_gallery_option_settings | 1,334 | 2.66 | 56.32 | 89.79 |
Add New Photo /wp-admin/post-new.php?post_type=lazy_gallery | 2,252 | 4.68 | 99.74 | 106.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/kento-simple-fancy-gallery/fancy-gallery-admin.php:5
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/kento-simple-fancy-gallery/fancy-photo-gallery.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/kento-simple-fancy-gallery/fancy-photo-gallery.php:14
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=lazy_gallery
- > Javascript (severe) in unknown
/wp-content/plugins/kento-simple-fancy-gallery/js/jquery.fancybox-1.3.4.pack.js?ver=1.0 17:218 Uncaught TypeError: Cannot read properties of undefined (reading 'msie')
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Gallery Screenshot), #2 (Admin admin panel)
- Tags: There are too many tags (14 tag instead of maximum 10)
kento-simple-fancy-gallery/fancy-photo-gallery.php 92% from 13 tests
The entry point to "Kento Simple Fancy Gallery" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("kento-simple-fancy-gallery.php" instead of "fancy-photo-gallery.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin3,557 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 583 | 40 | 3,195 |
PHP | 2 | 78 | 17 | 207 |
JavaScript | 3 | 29 | 33 | 155 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
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 | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.06MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/menu-icons.png | 0.94KB | 0.09KB | ▼ 90.10% |
screenshot-1.png | 57.21KB | 18.03KB | ▼ 68.50% |