Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.20ms] Passed 4 tests
An overview of server-side resources used by Luzuk Photo Gallery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.49 ▼2.75 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.38 ▼2.06 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.44 ▼1.07 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 91.28 ▲4.10 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.43 ▼2.90 |
Add New /wp-admin/post-new.php?post_type=our-lgallery | 3.33 | 47.32 |
Luzuk Photo Gallery /wp-admin/edit.php?post_type=our-lgallery | 3.30 | 33.11 |
Server storage [IO: ▲0.36MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Luzuk Photo Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,014 ▲257 | 14.29 ▼0.38 | 17.38 ▲15.53 | 41.77 ▲1.45 |
Dashboard /wp-admin | 2,233 ▲45 | 5.89 ▲0.86 | 108.05 ▼7.99 | 41.23 ▼0.01 |
Posts /wp-admin/edit.php | 2,116 ▲24 | 2.04 ▲0.04 | 38.17 ▼0.96 | 33.86 ▼6.10 |
Add New Post /wp-admin/post-new.php | 1,575 ▲47 | 18.03 ▼0.26 | 597.94 ▼15.76 | 71.22 ▲20.37 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.26 ▲0.03 | 94.74 ▼1.93 | 42.16 ▲1.80 |
Add New /wp-admin/post-new.php?post_type=our-lgallery | 1,715 | 3.56 | 64.46 | 32.36 |
Luzuk Photo Gallery /wp-admin/edit.php?post_type=our-lgallery | 1,094 | 2.00 | 29.94 | 30.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/luzuk-photo-gallery/luzuk-photo-gallery.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (21 tag instead of maximum 10)
luzuk-photo-gallery/luzuk-photo-gallery.php Passed 13 tests
The principal PHP file in "Luzuk Photo Gallery" v. 0.0.1 is loaded by WordPress automatically on each request
117 characters long description:
Luzuk Photo Gallery is a plugin to create your own Image Gallery section. You can add this shortcode [luzuk_gallery].
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin677 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 96 | 58 | 528 |
PHP | 1 | 53 | 26 | 138 |
CSS | 3 | 2 | 8 | 11 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
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 | 7 | |
▷ Named functions | 7 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/default.png | 5.19KB | 5.66KB | 0.00% |