Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼1.31ms] Passed 4 tests
Server-side resources used by Photo Gallery by 2J
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.12 ▼1.47 |
Dashboard /wp-admin | 3.35 ▲0.04 | 49.24 ▼5.63 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 58.85 ▲5.92 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 100.22 ▲0.84 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.52 ▲1.03 |
2J Photo Gallery /wp-admin/options-general.php?page=photo_gallery_2j_settings | 3.23 | 33.47 |
Server storage [IO: ▲3.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_photo_gallery_2j_widget |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
twoj_photo_gallery_BeforeActivator |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Photo Gallery by 2J
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.28 ▼0.13 | 1.85 ▼0.08 | 43.32 ▼2.45 |
Dashboard /wp-admin | 2,199 ▲19 | 5.62 ▼0.05 | 90.25 ▼6.83 | 44.00 ▲1.47 |
Posts /wp-admin/edit.php | 2,107 ▲10 | 2.01 ▲0.07 | 39.49 ▲0.94 | 35.51 ▼1.32 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 18.22 ▼4.81 | 606.37 ▼24.99 | 67.71 ▲9.54 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.16 ▼0.07 | 103.50 ▲2.09 | 43.42 ▼5.74 |
2J Photo Gallery /wp-admin/options-general.php?page=photo_gallery_2j_settings | 810 | 2.04 | 25.35 | 26.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- widget_photo_gallery_2j_widget
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=photo_gallery_2j_settings
- > Notice in wp-content/plugins/2j-photo-gallery/includes/options.php+41
Undefined index: active
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Photo gallery 2J - An example of plugin in action - [Grid Gallery Type]), #2 (Photo gallery - An example of plugin in action - [Grid Gallery Type]), #3 (An example of plugin in action - (LightBox Gallery Version)), #4 (An example of plugin in action - (LightBox Gallery Version)), #5 (An example of plugin in action - (Thumbnails Video Version)), #10 (An example of plugin in action - (Thumbnails Video Version))
2j-photo-gallery/2j-photo-gallery.php Passed 13 tests
The main PHP file in "Photo Gallery by 2J" ver. 1.0.12 adds more information about the plugin and also serves as the entry point for this plugin
128 characters long description:
Photo gallery with light style design. Simple config and interface settings of the photo gallery. Classic and grid photo layout.
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
Everything looks great! No dangerous files found in this plugin13,516 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 1,205 | 19 | 10,197 |
JavaScript | 5 | 929 | 461 | 3,141 |
PHP | 4 | 48 | 35 | 177 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 2 | 33.33% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 2.07MB with 1.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 7.08KB | 4.33KB | ▼ 38.83% |
screenshot-4.png | 31.39KB | 9.15KB | ▼ 70.86% |
screenshot-1.png | 6.21KB | 4.10KB | ▼ 33.93% |
screenshot-5.png | 1,063.18KB | 246.50KB | ▼ 76.82% |
screenshot-6.png | 1,004.99KB | 231.62KB | ▼ 76.95% |