Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.42MB] [CPU: ▼0.47ms] Passed 4 tests
An overview of server-side resources used by ImagePress - Image Gallery
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.42 | 40.10 ▲1.78 |
Dashboard /wp-admin | 3.70 ▲0.39 | 47.37 ▼1.71 |
Posts /wp-admin/edit.php | 3.82 ▲0.46 | 50.28 ▲2.32 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.50 | 84.07 ▼4.29 |
Media Library /wp-admin/upload.php | 3.63 ▲0.39 | 39.24 ▲2.57 |
Image Categories /wp-admin/edit-tags.php?taxonomy=imagepress_image_category&post_type=image | 3.62 | 36.20 |
ImagePress Settings /wp-admin/edit.php?post_type=image&page=imagepress_admin_page | 3.59 | 32.02 |
All images /wp-admin/edit.php?post_type=image | 3.67 | 38.24 |
Add new /wp-admin/post-new.php?post_type=image | 6.38 | 79.45 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 8 new options
New WordPress options |
---|
imagepress |
widget_img_gallery |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
ImagePress - Image Gallery: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,993 ▲207 | 15.37 ▲0.80 | 15.37 ▲13.15 | 39.53 ▼6.97 |
Dashboard /wp-admin | 2,234 ▲54 | 5.56 ▼0.10 | 87.49 ▼6.62 | 40.80 ▼3.11 |
Posts /wp-admin/edit.php | 2,142 ▲39 | 1.99 ▲0.01 | 35.82 ▼1.95 | 35.85 ▼0.86 |
Add New Post /wp-admin/post-new.php | 1,561 ▲35 | 23.04 ▼0.09 | 670.20 ▲26.01 | 53.14 ▼0.18 |
Media Library /wp-admin/upload.php | 1,436 ▲36 | 4.20 ▼0.09 | 94.35 ▼6.84 | 42.55 ▲0.44 |
Image Categories /wp-admin/edit-tags.php?taxonomy=imagepress_image_category&post_type=image | 1,313 | 2.12 | 29.47 | 28.73 |
ImagePress Settings /wp-admin/edit.php?post_type=image&page=imagepress_admin_page | 990 | 2.00 | 23.80 | 52.76 |
All images /wp-admin/edit.php?post_type=image | 1,173 | 1.97 | 29.29 | 27.88 |
Add new /wp-admin/post-new.php?post_type=image | 6,243 | 22.83 | 904.23 | 33.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- imagepress
- widget_img_gallery
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_option() in wp-content/plugins/image-gallery/includes/imagepress-install.php:65
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-gallery/includes/functions.php:203
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/image-gallery/includes/alpha-functions.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (A view of the Image Gallery in action), #2 (A view of the Image Gallery in action)
image-gallery/image-gallery.php Passed 13 tests
The main PHP script in "ImagePress - Image Gallery" version 1.0.8 is automatically included on every request by WordPress
64 characters long description:
A simple WordPress image gallery plugin with a crossfade effect.
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 plugin5,609 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 907 | 106 | 2,392 |
PHP | 7 | 418 | 277 | 1,665 |
CSS | 6 | 215 | 45 | 1,121 |
Sass | 2 | 27 | 5 | 260 |
LESS | 1 | 13 | 5 | 150 |
SVG | 1 | 1 | 0 | 13 |
Ruby | 1 | 2 | 0 | 8 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 51 | |
▷ Named functions | 51 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 18.48KB | 8.01KB | ▼ 56.67% |
screenshot-1.png | 22.84KB | 9.37KB | ▼ 58.95% |