Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.27MB] [CPU: ▼6.11ms] Passed 4 tests
An overview of server-side resources used by Photospace Responsive Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.25 | 41.12 ▼2.28 |
Dashboard /wp-admin | 3.58 ▲0.27 | 48.13 ▼6.13 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 52.73 ▲5.01 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 87.17 ▼15.62 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 36.29 ▼0.42 |
Photospace Res Settings /wp-admin/options-general.php?page=photospace_responsive_gallery_settings | 3.51 | 45.03 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options |
---|
photospace_responsive_gallery_version |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Photospace Responsive Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,900 ▲165 | 13.97 ▼0.65 | 10.74 ▲9.07 | 45.69 ▼0.26 |
Dashboard /wp-admin | 2,211 ▲26 | 5.83 ▼0.07 | 104.55 ▼0.79 | 40.42 ▼2.03 |
Posts /wp-admin/edit.php | 2,100 ▲8 | 2.02 ▲0.00 | 39.01 ▲0.00 | 35.21 ▲2.25 |
Add New Post /wp-admin/post-new.php | 1,521 ▼21 | 23.26 ▲5.22 | 654.93 ▲26.00 | 52.38 ▲3.14 |
Media Library /wp-admin/upload.php | 1,396 ▲5 | 4.23 ▲0.02 | 96.05 ▼4.09 | 42.07 ▼2.40 |
Photospace Res Settings /wp-admin/options-general.php?page=photospace_responsive_gallery_settings | 1,234 | 3.03 | 44.93 | 24.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- photospace_responsive_gallery_version
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 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
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/photospace-responsive/includes/photospace-responsive-wp-headers.php:3
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 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
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Screenshot Default gallery layout), #2 (Screenshot Admin Area)
- Tags: There are too many tags (14 tag instead of maximum 10)
photospace-responsive/photospace-responsive.php Passed 13 tests
"Photospace Responsive Gallery" version 2.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
140 characters long description:
A simplified version of Photospace featuring a responsive only layout. This is a image gallery plugin for WordPress built using Galleriffic.
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 detected7,473 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 5,194 |
PHP | 9 | 335 | 633 | 1,119 |
JavaScript | 11 | 220 | 225 | 937 |
LESS | 1 | 2 | 0 | 204 |
SVG | 2 | 0 | 2 | 18 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 26.80 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 2 | 4.65% |
▷ Public methods | 40 | 93.02% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 6.98% |
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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugin-assets/images/arrow-left.png | 0.25KB | 0.21KB | ▼ 16.60% |
plugin-assets/images/arrow-right.png | 0.25KB | 0.21KB | ▼ 15.50% |