Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼301.65ms] Passed 4 tests
Analyzing 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.56 ▲0.04 | 49.29 ▼2.15 |
Dashboard /wp-admin | 3.46 ▲0.05 | 36.80 ▼3.37 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 46.69 ▲7.90 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 92.82 ▼1,202.39 |
Media Library /wp-admin/upload.php | 3.33 ▲0.04 | 24.64 ▲1.31 |
2J Photo Gallery /wp-admin/options-general.php?page=photo_gallery_2j_settings | 3.30 | 35.27 |
Server storage [IO: ▲3.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 2 new options
New WordPress options |
---|
widget_photo_gallery_2j_widget |
twoj_photo_gallery_BeforeActivator |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Photo Gallery by 2J
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,787 ▲64 | 15.16 ▼0.43 | 6.01 ▼0.81 | 2.74 ▲0.44 |
Dashboard /wp-admin | 2,883 ▲22 | 6.03 ▼0.13 | 113.94 ▼22.58 | 157.53 ▼0.35 |
Posts /wp-admin/edit.php | 2,693 ▲2 | 3.24 ▲0.00 | 68.84 ▲3.65 | 154.58 ▲6.79 |
Add New Post /wp-admin/post-new.php | 1,664 ▲3 | 15.88 ▼0.08 | 443.52 ▲27.08 | 158.90 ▼40.31 |
Media Library /wp-admin/upload.php | 1,700 ▲2 | 5.55 ▲0.03 | 143.79 ▼3.46 | 185.72 ▲0.36 |
2J Photo Gallery /wp-admin/options-general.php?page=photo_gallery_2j_settings | 1,035 | 2.38 | 77.63 | 101.76 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 1 option in the database
- widget_photo_gallery_2j_widget
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots require 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 entry point to "Photo Gallery by 2J" version 1.0.12 is a PHP file that has certain tags in its header comment area
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 | An overview of files in this plugin; executable files are not allowed
Success! There were 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
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
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
It is recommended to compress PNG files in your plugin to 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-1.png | 6.21KB | 4.10KB | ▼ 33.93% |
screenshot-5.png | 1,063.18KB | 246.50KB | ▼ 76.82% |
screenshot-2.png | 6.33KB | 3.93KB | ▼ 37.95% |
screenshot-6.png | 1,004.99KB | 231.62KB | ▼ 76.95% |
screenshot-4.png | 31.39KB | 9.15KB | ▼ 70.86% |