Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- This plugin did not install gracefully
- > Parse error in wp-content/plugins/zielke-design-project-gallery/shortcodes/albums.php+119
syntax error, unexpected '}'
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.63ms] Passed 4 tests
An overview of server-side resources used by Zielke Design Project Gallery
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.79 ▼5.51 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.60 ▼2.94 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.22 ▲1.39 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.50 ▼7.07 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.76 ▲1.02 |
Server storage [IO: ▲6.61MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Zielke Design Project Gallery
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.21 ▼1.10 | 1.60 ▼0.81 | 38.90 ▼11.97 |
Dashboard /wp-admin | 2,224 ▲18 | 5.86 ▼0.05 | 108.33 ▲6.14 | 41.77 ▼0.47 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 2.00 ▲0.02 | 39.58 ▼5.65 | 37.53 ▼2.88 |
Add New Post /wp-admin/post-new.php | 1,550 ▲24 | 23.38 ▼0.22 | 672.25 ▼56.86 | 63.46 ▲3.77 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.24 ▲0.03 | 94.82 ▼10.64 | 48.46 ▲0.86 |
Uninstaller [IO: ▲6.61MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the followingThis plugin does not fully uninstall, leaving 7 options in the database
- This plugin cannot be uninstalled
- > Parse error in wp-content/plugins/zielke-design-project-gallery/shortcodes/albums.php+119
syntax error, unexpected '}'
- The plugin did not uninstall correctly, leaving 53 files (6.61MB) in the plugin directory
- (new file) ajax/ajax-functions/lightbox.php
- (new file) admin/zpg_edit_gallery_functions.php
- (new file) admin/views/zpg_link.php
- (new file) ajax/zpg-frontend-ajax.js
- (new file) admin/views/zpg_images.php
- (new file) admin/views/zpg_order.php
- (new file) ajax/ajax-functions/error_log
- (new file) admin/views/zpg_client.php
- (new file) admin/pages/settings.php
- (new file) admin/pages/main.php
- ...
- db_upgraded
- recovery_mode_email_last_sent
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/zielke-design-project-gallery/ajax/ajax-functions/lightbox.php
- > /wp-content/plugins/zielke-design-project-gallery/admin/pages/main.php
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/zielke-design-project-gallery/admin/views/zpg_link.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/zielke-design-project-gallery/admin/views/zpg_client.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zielke-design-project-gallery/admin/zpg_edit_gallery_functions.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/zielke-design-project-gallery/admin/views/zpg_order.php:2
- > PHP Parse error
syntax error, unexpected '}' in wp-content/plugins/zielke-design-project-gallery/shortcodes/albums.php on line 119
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/zielke-design-project-gallery/admin/views/zpg_images.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/zielke-design-project-gallery/templates/single.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/zielke-design-project-gallery/admin/pages/settings.php:18
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
- Screenshots: Add a description for screenshot #4 in zielke-design-project-gallery/assets to your readme.txt
zielke-design-project-gallery/index.php 85% from 13 tests
The principal PHP file in "Zielke Design Project Gallery" v. 2.5.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("zielke-design-project-gallery.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected5,602 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 10 | 931 | 192 | 2,507 |
CSS | 7 | 86 | 95 | 1,438 |
PHP | 11 | 106 | 156 | 775 |
HTML | 3 | 64 | 0 | 299 |
Sass | 2 | 27 | 5 | 262 |
LESS | 1 | 11 | 5 | 152 |
JSON | 3 | 0 | 0 | 117 |
Markdown | 1 | 22 | 0 | 30 |
SVG | 2 | 1 | 0 | 14 |
Ruby | 1 | 2 | 0 | 8 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
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 | 19 | |
▷ Named functions | 19 | 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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 6.24MB with 2.64MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 3,198.35KB | 1,229.86KB | ▼ 61.55% |
screenshot-1.png | 2,105.51KB | 2,179.78KB | 0.00% |
screenshot-3.png | 1,081.67KB | 373.14KB | ▼ 65.50% |