Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.49ms] Passed 4 tests
A check of server-side resources used by Gallery Sharing
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.56 ▲1.73 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.80 ▼8.96 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 45.86 ▼1.09 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 87.94 ▲0.78 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 35.19 ▼0.70 |
Gallery Sharing /wp-admin/options-general.php?page=settings-gallery-sharing | 3.21 | 37.09 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Gallery Sharing
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲72 | 13.27 ▼1.10 | 1.80 ▲0.12 | 43.37 ▼0.83 |
Dashboard /wp-admin | 2,216 ▲25 | 4.90 ▼0.00 | 110.84 ▲8.68 | 40.75 ▲0.57 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.00 ▲0.01 | 40.12 ▲0.54 | 35.86 ▲2.38 |
Add New Post /wp-admin/post-new.php | 1,534 ▲20 | 17.61 ▲0.19 | 685.63 ▼1.37 | 37.60 ▼19.10 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.21 ▲0.00 | 93.72 ▼7.04 | 41.90 ▼7.78 |
Gallery Sharing /wp-admin/options-general.php?page=settings-gallery-sharing | 802 | 2.03 | 23.16 | 25.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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
Please take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/gallery-sharing/public/partials/shared-gallery.tpl.php:11
- > PHP Fatal error
Uncaught Error: Class 'Gallery_Sharing_Options' not found in wp-content/plugins/gallery-sharing/admin/partials/gallery-sharing-modal.tpl.php:8
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: sharing, gallery
gallery-sharing/ph-gallery-sharing.php 92% from 13 tests
The principal PHP file in "Gallery Sharing" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("gallery-sharing.php" instead of "ph-gallery-sharing.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected655 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 137 | 343 | 450 |
JavaScript | 1 | 22 | 68 | 108 |
CSS | 1 | 12 | 22 | 84 |
SVG | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 2 | 4.76% |
▷ Public methods | 34 | 80.95% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 19.05% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin