Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/is-photo-gallery/wp-isphoto.php+32
Methods with the same name as their class will not be constructors in a future version of PHP; ISGallery has a deprecated constructor
Server metrics [RAM: ▼1.72MB] [CPU: ▼50.87ms] Passed 4 tests
A check of server-side resources used by IS Photo Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.27 ▼1.20 | 5.50 ▼32.20 |
Dashboard /wp-admin | 2.29 ▼1.02 | 5.94 ▼41.81 |
Posts /wp-admin/edit.php | 2.29 ▼1.07 | 6.95 ▼42.69 |
Add New Post /wp-admin/post-new.php | 2.29 ▼3.60 | 5.98 ▼86.78 |
Media Library /wp-admin/upload.php | 2.29 ▼0.94 | 6.00 ▼26.61 |
WP-IS Photo Gallery /wp-admin/options-general.php?page=wpIS3DPhoto | 2.29 | 6.61 |
Server storage [IO: ▲0.92MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for IS Photo Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,882 ▲121 | 13.42 ▼1.18 | 8.48 ▲6.85 | 43.68 ▲4.97 |
Dashboard /wp-admin | 2,204 ▲29 | 5.57 ▼0.08 | 94.63 ▼6.71 | 41.73 ▼2.49 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 2.02 ▲0.04 | 34.24 ▼1.86 | 35.74 ▼1.45 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 22.88 ▼0.32 | 623.88 ▼41.06 | 50.83 ▼1.57 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.17 ▼0.02 | 97.01 ▲4.02 | 44.87 ▲1.94 |
WP-IS Photo Gallery /wp-admin/options-general.php?page=wpIS3DPhoto | 1,063 | 2.14 | 22.79 | 29.69 |
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
Please fix the following items
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/is-photo-gallery/wp-isphoto.php+32
Methods with the same name as their class will not be constructors in a future version of PHP; ISGallery has a deprecated constructor
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
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
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wpIS3DPhoto
- > Deprecated in wp-content/plugins/is-photo-gallery/wp-isphoto.php+32
Methods with the same name as their class will not be constructors in a future version of PHP; ISGallery has a deprecated constructor
SRP 50% 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
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/is-photo-gallery/wp-isphoto.php:54
- > PHP Fatal error
Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/is-photo-gallery/uninstall.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=wpIS3DPhoto
- > Network (severe)
wp-content/plugins/is-photo-gallery/js/is3d_utility.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
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:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
- Screenshots: These screenshots require images: #1 (IS Photo Gallery, captions enabled), #2 (IS Photo Gallery, captions disabled), #3 (Choose the options you need), #4 (Lightbox popups)
is-photo-gallery/wp-isphoto.php 92% from 13 tests
The main file in "IS Photo Gallery" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("is-photo-gallery.php" instead of "wp-isphoto.php")
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
There were no executable files found in this plugin1,595 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 337 | 137 | 864 |
PHP | 2 | 151 | 172 | 584 |
CSS | 1 | 20 | 10 | 147 |
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 | 76.00 |
▷ Minimum class complexity | 76.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 6.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.83MB with 0.52MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 480.94KB | 178.17KB | ▼ 62.96% |
screenshot-1.png | 181.95KB | 64.08KB | ▼ 64.78% |
screenshot-3.png | 39.86KB | 17.04KB | ▼ 57.24% |
screenshot-2.png | 151.76KB | 54.54KB | ▼ 64.06% |