Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.16MB] [CPU: ▼18.37ms] Passed 4 tests
Server-side resources used by Gallery One
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.91 ▼0.90 |
Dashboard /wp-admin | 3.21 ▼0.10 | 30.38 ▼19.39 |
Posts /wp-admin/edit.php | 3.28 ▼0.07 | 32.90 ▼16.50 |
Add New Post /wp-admin/post-new.php | 5.49 ▼0.40 | 71.76 ▼31.03 |
Media Library /wp-admin/upload.php | 3.18 ▼0.05 | 27.11 ▼6.57 |
Add New /wp-admin/post-new.php?post_type=go_album | 3.40 | 39.05 |
All Galleries /wp-admin/edit.php?post_type=go_album | 3.26 | 32.32 |
Server storage [IO: ▲0.67MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 104 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Gallery One: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,992 ▲257 | 14.69 ▲0.39 | 1.83 ▲0.18 | 46.90 ▲7.26 |
Dashboard /wp-admin | 2,380 ▲192 | 6.50 ▲1.66 | 116.22 ▲10.54 | 36.56 ▼6.11 |
Posts /wp-admin/edit.php | 2,283 ▲194 | 3.50 ▲1.50 | 44.66 ▲9.78 | 29.91 ▼3.91 |
Add New Post /wp-admin/post-new.php | 1,543 ▲23 | 17.82 ▼5.36 | 644.31 ▼39.68 | 37.57 ▼20.03 |
Media Library /wp-admin/upload.php | 1,419 ▲34 | 4.11 ▼0.12 | 78.43 ▼24.15 | 39.51 ▼5.24 |
Add New /wp-admin/post-new.php?post_type=go_album | 2,047 | 4.03 | 71.16 | 31.06 |
All Galleries /wp-admin/edit.php?post_type=go_album | 1,286 | 3.42 | 43.23 | 27.52 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
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
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=go_album
- > Warning in wp-admin/includes/file.php+152
opendir(wp-content/themes/twentytwentyone/gallery-one/): failed to open dir: No such file or directory
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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 18 tag instead of maximum 10
- Screenshots: A description for screenshot #9 is missing in gallery-one/assets to your readme.txt
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== gallery-one ===
)
gallery-one/init.php 92% from 13 tests
The main PHP file in "Gallery One" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("gallery-one.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected11,695 lines of code in 75 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 20 | 915 | 399 | 4,300 |
Sass | 17 | 551 | 88 | 2,802 |
CSS | 15 | 159 | 103 | 2,335 |
PHP | 16 | 223 | 86 | 1,457 |
HTML | 1 | 11 | 0 | 349 |
JSON | 1 | 0 | 0 | 226 |
Markdown | 1 | 41 | 0 | 117 |
SVG | 4 | 35 | 0 | 109 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 23.80 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 3.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 5 | 11.90% |
▷ Public methods | 39 | 92.86% |
▷ Protected methods | 3 | 7.14% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.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 Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/lightgallery/img/vimeo-play.png | 5.30KB | 1.56KB | ▼ 70.65% |
assets/lightslider/img/controls.png | 2.19KB | 0.95KB | ▼ 56.49% |
assets/lightgallery/img/video-play.png | 4.42KB | 1.05KB | ▼ 76.27% |
assets/lightgallery/img/youtube-play.png | 5.06KB | 2.37KB | ▼ 53.04% |