Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.90ms] Passed 4 tests
Analyzing server-side resources used by Product Gallery with Quote Button
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.35 ▼8.06 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.34 ▼3.89 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 50.06 ▲1.74 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 92.24 ▼9.40 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.61 ▲2.61 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Product Gallery with Quote Button: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.48 ▲0.19 | 1.77 ▼0.12 | 41.59 ▼2.30 |
Dashboard /wp-admin | 2,206 ▲18 | 5.87 ▲0.79 | 110.80 ▼2.48 | 40.59 ▼6.43 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 2.02 ▲0.03 | 40.99 ▲6.00 | 35.30 ▼1.10 |
Add New Post /wp-admin/post-new.php | 1,548 ▲15 | 18.17 ▼4.69 | 600.29 ▼62.83 | 68.20 ▲7.33 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.20 ▼0.01 | 96.82 ▼6.86 | 42.29 ▼5.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_settings_section() in wp-content/plugins/product-gallery-with-quote-button/templates/settings-admin.php:4
- > PHP Fatal error
require_once(): Failed opening required 'WPGWQB_PLUGIN_DIR/Modules/Gallery/Gallery.php' (include_path='.:/usr/share/php') in wp-content/plugins/product-gallery-with-quote-button/templates/gallery.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function ProductGalleryWithQuoteButton\\plugin_basename() in wp-content/plugins/product-gallery-with-quote-button/product-gallery-with-quote-button.php:17
- > PHP Warning
Use of undefined constant WPGWQB_PLUGIN_DIR - assumed 'WPGWQB_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/product-gallery-with-quote-button/Modules/Gallery/Gallery.php on line 5
- > PHP Warning
Use of undefined constant WPGWQB_PLUGIN_DIR - assumed 'WPGWQB_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/product-gallery-with-quote-button/templates/gallery.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/product-gallery-with-quote-button/templates/contact-form.php:6
- > PHP Warning
require_once(WPGWQB_PLUGIN_DIR/Modules/Gallery/Gallery.php): failed to open stream: No such file or directory in wp-content/plugins/product-gallery-with-quote-button/templates/gallery.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'WPGWQB_PLUGIN_DIR/Modules/Product/Product.php' (include_path='.:/usr/share/php') in wp-content/plugins/product-gallery-with-quote-button/Modules/Gallery/Gallery.php on line 5
- > PHP Warning
require_once(WPGWQB_PLUGIN_DIR/Modules/Product/Product.php): failed to open stream: No such file or directory in wp-content/plugins/product-gallery-with-quote-button/Modules/Gallery/Gallery.php on line 5
- > PHP Fatal error
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 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 your attention:
- Screenshots: These screenshots do not have images: #1 (This screen shot shows the gallery screenshot-1.png. Screenshots are stored in the /assets directory.), #2 (This screen shot shows the gallery with contact form screenshot-2.png.), #3 (This screen shot shows the settings page screenshot-3.png.)
product-gallery-with-quote-button/product-gallery-with-quote-button.php Passed 13 tests
The main PHP script in "Product Gallery with Quote Button" version 1.0 is automatically included on every request by WordPress
70 characters long description:
Create a frontend product gallery and add quote button to each product
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected542 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 64 | 128 | 297 |
CSS | 1 | 30 | 3 | 124 |
PO File | 1 | 25 | 26 | 65 |
JavaScript | 1 | 7 | 0 | 48 |
Markdown | 1 | 3 | 0 | 8 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 3.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
3 PNG files occupy 0.70MB with 0.43MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 415.54KB | 108.34KB | ▼ 73.93% |
assets/screenshot-3.png | 46.07KB | 25.56KB | ▼ 44.52% |
assets/screenshot-1.png | 255.24KB | 86.25KB | ▼ 66.21% |