Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.27MB] [CPU: ▼293.21ms] Passed 4 tests
Analyzing server-side resources used by Infinite Masonry Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.29 | 56.03 ▲5.98 |
Dashboard /wp-admin | 3.68 ▲0.27 | 36.31 ▲2.67 |
Posts /wp-admin/edit.php | 3.91 ▲0.27 | 40.33 ▲3.34 |
Add New Post /wp-admin/post-new.php | 7.24 ▲0.24 | 99.26 ▼1,181.05 |
Media Library /wp-admin/upload.php | 3.63 ▲0.33 | 26.89 ▲2.19 |
Settings /wp-admin/edit.php?post_type=cc_img_gallery&page=options | 3.63 | 28.44 |
Add new gallery /wp-admin/post-new.php?post_type=cc_img_gallery | 3.86 | 46.35 |
Support /wp-admin/edit.php?post_type=cc_img_gallery&page=support | 3.63 | 28.25 |
All galleries /wp-admin/edit.php?post_type=cc_img_gallery | 3.71 | 34.40 |
Server storage [IO: ▲3.58MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 50 new files
Database: no new tables, 2 new options
New WordPress options |
---|
cc_img_id |
cc_img_curr_version |
Browser metrics Passed 4 tests
A check of browser resources used by Infinite Masonry Gallery
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,844 ▲87 | 15.85 ▲0.30 | 6.15 ▼0.38 | 2.59 ▲0.15 |
Dashboard /wp-admin | 2,939 ▲78 | 6.17 ▲0.02 | 114.48 ▼18.60 | 156.88 ▼9.61 |
Posts /wp-admin/edit.php | 2,702 ▲11 | 3.25 ▲0.03 | 63.08 ▼0.91 | 144.40 ▲1.10 |
Add New Post /wp-admin/post-new.php | 1,789 ▲31 | 16.99 ▼5.07 | 421.58 ▼69.98 | 159.42 ▲6.51 |
Media Library /wp-admin/upload.php | 1,742 ▲44 | 5.51 ▲0.05 | 140.59 ▼0.38 | 191.79 ▲5.52 |
Settings /wp-admin/edit.php?post_type=cc_img_gallery&page=options | 1,291 | 4.30 | 70.61 | 111.12 |
Add new gallery /wp-admin/post-new.php?post_type=cc_img_gallery | 2,284 | 7.62 | 147.28 | 133.69 |
Support /wp-admin/edit.php?post_type=cc_img_gallery&page=support | 1,265 | 4.28 | 65.69 | 99.54 |
All galleries /wp-admin/edit.php?post_type=cc_img_gallery | 1,631 | 5.08 | 74.10 | 112.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 2 options in the database
- cc_img_id
- cc_img_curr_version
Smoke tests 75% 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)
Good news, no errors were detected
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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/infinite-masonry-gallery/admin/shortcode.php:24
- > 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 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
- Plugin Name: Please specify the plugin name on the first line (
=== infinite-masonry-gallery ===
)
infinite-masonry-gallery/infinite-masonry-gallery.php Passed 13 tests
The main PHP script in "Infinite Masonry Gallery" version 1.0.3 is automatically included on every request by WordPress
63 characters long description:
Dispaly infinitely scrollable galleries in a beautiful masonry.
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
No dangerous file extensions were detected1,405 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 724 | 886 | 1,256 |
JavaScript | 5 | 0 | 126 | 148 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 9.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 81 | |
▷ Static methods | 14 | 17.28% |
▷ Public methods | 76 | 93.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 6.17% |
Functions | 6 | |
▷ Named functions | 6 | 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
9 PNG files occupy 0.40MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/denis_eyes.png | 80.51KB | 79.31KB | ▼ 1.49% |
public/placeholder.png | 6.84KB | 1.92KB | ▼ 72.00% |
assets/paypal.png | 3.07KB | 2.98KB | ▼ 3.08% |
assets/watermark_OUT.png | 11.64KB | 5.77KB | ▼ 50.42% |
assets/denis.png | 277.56KB | 100.13KB | ▼ 63.93% |