Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.87MB] [CPU: ▼32.96ms] Passed 4 tests
An overview of server-side resources used by Photo Prism
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 41.98 ▼0.91 |
Dashboard /wp-admin | 3.07 ▼0.23 | 26.52 ▼22.21 |
Posts /wp-admin/edit.php | 3.07 ▼0.28 | 26.53 ▼22.25 |
Add New Post /wp-admin/post-new.php | 3.07 ▼2.81 | 26.58 ▼78.69 |
Media Library /wp-admin/upload.php | 3.07 ▼0.16 | 26.92 ▼8.67 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_photo_table |
New WordPress options |
---|
can_compress_scripts |
SP_text_1 |
widget_recent-comments |
ps_myphoto_page_id |
widget_recent-posts |
widget_theysaidso_widget |
SP_text_2 |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Photo Prism
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,974 ▲213 | 14.15 ▼0.38 | 7.35 ▲5.44 | 24.62 ▼20.78 |
Dashboard /wp-admin | 2,213 ▲36 | 4.92 ▼0.73 | 86.55 ▼6.66 | 96.30 ▲54.85 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 2.32 ▲0.32 | 39.33 ▲0.32 | 52.12 ▲17.27 |
Add New Post /wp-admin/post-new.php | 1,712 ▲181 | 22.88 ▼0.22 | 792.38 ▲117.10 | 61.26 ▲8.38 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.48 ▲0.27 | 108.28 ▲2.35 | 92.44 ▲49.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/photoprism/pp-photo-prism.php+369
Undefined index: action
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/photoprism/pp-photo-prism.php
- > /wp-content/plugins/photoprism/inc/database.php
- > /wp-content/plugins/photoprism/views/myphoto.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: photo vault, photo, photography
photoprism/pp-photo-prism.php 92% from 13 tests
The main PHP file in "Photo Prism" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("photoprism.php" instead of "pp-photo-prism.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin824 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 130 | 45 | 597 |
CSS | 2 | 31 | 9 | 143 |
JavaScript | 2 | 8 | 6 | 84 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for 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 | 25 | |
▷ Named functions | 21 | 84.00% |
▷ Anonymous functions | 4 | 16.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon-check.png | 2.13KB | 1.45KB | ▼ 32.17% |
img/photo-icon-km-old.png | 8.29KB | 4.78KB | ▼ 42.32% |
img/photo-icon-km.png | 1.41KB | 0.87KB | ▼ 38.70% |