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.19MB] [CPU: ▼10.01ms] Passed 4 tests
Server-side resources used by Photo Gallery WordPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 43.87 ▲4.58 |
Dashboard /wp-admin | 3.51 ▲0.16 | 52.08 ▼13.50 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 48.45 ▼3.56 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 86.64 ▼21.57 |
Media Library /wp-admin/upload.php | 3.43 ▲0.19 | 36.93 ▼1.39 |
Generate Shortcode /wp-admin/post-new.php?post_type=generategallery | 3.47 | 58.35 |
All Shortcodes /wp-admin/edit.php?post_type=generategallery | 3.47 | 38.92 |
All Images /wp-admin/edit.php?post_type=tp_photo_gallery | 3.43 | 39.24 |
Categories /wp-admin/edit-tags.php?taxonomy=tpgallerycat&post_type=tp_photo_gallery | 3.42 | 36.61 |
Add New Image /wp-admin/post-new.php?post_type=tp_photo_gallery | 3.56 | 53.84 |
Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Photo Gallery WordPress: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,985 ▲239 | 13.82 ▼0.80 | 9.97 ▲8.34 | 43.56 ▼2.10 |
Dashboard /wp-admin | 2,264 ▲84 | 5.90 ▲0.22 | 93.31 ▲5.28 | 42.86 ▼0.62 |
Posts /wp-admin/edit.php | 2,150 ▲47 | 2.35 ▲0.37 | 36.13 ▼5.83 | 34.59 ▼8.74 |
Add New Post /wp-admin/post-new.php | 1,587 ▲56 | 23.33 ▲0.66 | 648.32 ▼42.09 | 35.68 ▼22.03 |
Media Library /wp-admin/upload.php | 1,470 ▲70 | 4.48 ▲0.32 | 97.44 ▼15.61 | 45.13 ▼1.90 |
Generate Shortcode /wp-admin/post-new.php?post_type=generategallery | 2,423 | 2.90 | 60.45 | 40.99 |
All Shortcodes /wp-admin/edit.php?post_type=generategallery | 1,143 | 2.46 | 33.60 | 29.33 |
All Images /wp-admin/edit.php?post_type=tp_photo_gallery | 1,141 | 2.45 | 36.70 | 31.76 |
Categories /wp-admin/edit-tags.php?taxonomy=tpgallerycat&post_type=tp_photo_gallery | 1,348 | 2.17 | 28.15 | 27.06 |
Add New Image /wp-admin/post-new.php?post_type=tp_photo_gallery | 2,440 | 8.14 | 199.99 | 78.08 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/edit.php?post_type=tp_photo_gallery
- > Notice in wp-content/plugins/responsive-photo-gallery-wp/libs/post-types/tps_photo_gallery_posttypes.php+68
Undefined index: order
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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: You are using too many tags: 12 tag instead of maximum 10
responsive-photo-gallery-wp/custom-photo-gallery-wordpress.php 85% from 13 tests
This is the main PHP file of "Photo Gallery WordPress" version 1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 163 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("responsive-photo-gallery-wp.php" instead of "custom-photo-gallery-wordpress.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
Success! There were no dangerous files found in this plugin5,169 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 417 | 231 | 2,377 |
CSS | 4 | 125 | 28 | 1,294 |
PHP | 4 | 121 | 64 | 933 |
SVG | 1 | 0 | 0 | 565 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/gallery.png | 3.87KB | 0.87KB | ▼ 77.55% |