Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.13MB] [CPU: ▼21.23ms] Passed 4 tests
This is a short check of server-side resources used by GPhotos
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 39.38 ▼2.98 |
Dashboard /wp-admin | 3.19 ▼0.15 | 31.70 ▼34.72 |
Posts /wp-admin/edit.php | 3.33 ▼0.03 | 35.19 ▼15.27 |
Add New Post /wp-admin/post-new.php | 5.52 ▼0.36 | 71.75 ▼25.68 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 28.87 ▼9.26 |
Add a picture /wp-admin/post-new.php?post_type=slide | 3.37 | 49.77 |
GPhotos /wp-admin/edit.php?post_type=slide | 3.36 | 36.37 |
GPhotos Settings /wp-admin/options-general.php?page=id_GPhotos | 3.17 | 26.05 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for GPhotos
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,054 ▲308 | 14.62 ▼0.05 | 18.80 ▲16.76 | 41.13 ▼13.61 |
Dashboard /wp-admin | 2,242 ▲54 | 4.92 ▼0.98 | 103.24 ▼8.69 | 85.75 ▲41.58 |
Posts /wp-admin/edit.php | 2,122 ▲30 | 1.97 ▼0.03 | 34.55 ▼5.86 | 30.00 ▼5.07 |
Add New Post /wp-admin/post-new.php | 1,696 ▲177 | 22.39 ▼1.05 | 737.10 ▲68.23 | 47.99 ▼8.08 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.21 ▲0.07 | 105.79 ▼11.82 | 67.18 ▲18.61 |
Add a picture /wp-admin/post-new.php?post_type=slide | 1,815 | 3.75 | 65.69 | 81.05 |
GPhotos /wp-admin/edit.php?post_type=slide | 1,116 | 1.95 | 32.34 | 32.28 |
GPhotos Settings /wp-admin/options-general.php?page=id_GPhotos | 1,174 | 2.06 | 26.03 | 29.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=id_GPhotos
- > Notice in wp-content/plugins/gphotos/photos.php+58
Undefined index: post_type
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 fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gphotos/photos.php:32
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=id_GPhotos
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=id_GPhotos 223 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/options-general.php?page=id_GPhotos
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=id_GPhotos 228 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/options-general.php?page=id_GPhotos
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=id_GPhotos 238 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/options-general.php?page=id_GPhotos
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=id_GPhotos 253 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Donate link: Invalid URI ("")
gphotos/photos.php 92% from 13 tests
The main file in "GPhotos" v. 1.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gphotos.php" instead of "photos.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,265 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 30 | 77 | 522 |
PHP | 1 | 121 | 68 | 383 |
CSS | 1 | 2 | 25 | 360 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
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 | 20 | |
▷ Named functions | 20 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/simpleclose.png | 1.06KB | 0.18KB | ▼ 83.12% |
images/ppsprite.png | 4.13KB | 2.26KB | ▼ 45.33% |
images/simplenav.png | 2.82KB | 0.45KB | ▼ 84.18% |
images/loader.png | 12.12KB | 6.30KB | ▼ 48.01% |
images/ppprev.png | 0.81KB | 0.58KB | ▼ 27.90% |