Benchmarks
Plugin footprint 83% 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.24MB] [CPU: ▼8.27ms] Passed 4 tests
Analyzing server-side resources used by PhotoPress - Image Taxonomies
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.31 | 44.70 ▼8.39 |
Dashboard /wp-admin | 3.87 ▲0.23 | 58.36 ▼14.53 |
Posts /wp-admin/edit.php | 3.92 ▲0.24 | 51.25 ▼1.28 |
Add New Post /wp-admin/post-new.php | 6.38 ▲0.24 | 95.58 ▼8.87 |
Media Library /wp-admin/upload.php | 3.73 ▲0.24 | 40.95 ▼0.33 |
Collections /wp-admin/edit-tags.php?taxonomy=photos_collection&post_type=attachment | 3.72 | 38.98 |
States /wp-admin/edit-tags.php?taxonomy=photos_state&post_type=attachment | 3.72 | 43.87 |
Cities /wp-admin/edit-tags.php?taxonomy=photos_city&post_type=attachment | 3.72 | 38.58 |
Keywords /wp-admin/edit-tags.php?taxonomy=photos_keywords&post_type=attachment | 3.72 | 37.43 |
Cameras /wp-admin/edit-tags.php?taxonomy=photos_camera&post_type=attachment | 3.72 | 36.41 |
People /wp-admin/edit-tags.php?taxonomy=photos_people&post_type=attachment | 3.72 | 39.65 |
Countries /wp-admin/edit-tags.php?taxonomy=photos_country&post_type=attachment | 3.72 | 37.88 |
Lenses /wp-admin/edit-tags.php?taxonomy=photos_lens&post_type=attachment | 3.72 | 41.22 |
Prints /wp-admin/edit-tags.php?taxonomy=photos_prints&post_type=attachment | 3.72 | 36.80 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
widget_papt_displaytaxterms |
db_upgraded |
widget_papt_displayexif |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PhotoPress - Image Taxonomies
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 14.38 ▲0.08 | 1.99 ▲0.00 | 45.30 ▲3.03 |
Dashboard /wp-admin | 2,231 ▲54 | 5.70 ▲0.09 | 97.81 ▼6.68 | 44.39 ▲2.36 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 2.08 ▲0.06 | 37.23 ▲0.09 | 32.95 ▼2.96 |
Add New Post /wp-admin/post-new.php | 1,572 ▲46 | 23.12 ▼0.27 | 638.28 ▼6.10 | 54.71 ▲5.74 |
Media Library /wp-admin/upload.php | 1,436 ▲33 | 4.24 ▼0.01 | 98.16 ▼4.46 | 45.06 ▲2.24 |
Collections /wp-admin/edit-tags.php?taxonomy=photos_collection&post_type=attachment | 1,282 | 2.14 | 28.75 | 32.72 |
States /wp-admin/edit-tags.php?taxonomy=photos_state&post_type=attachment | 1,285 | 2.14 | 30.59 | 32.63 |
Cities /wp-admin/edit-tags.php?taxonomy=photos_city&post_type=attachment | 1,282 | 2.14 | 26.75 | 28.74 |
Keywords /wp-admin/edit-tags.php?taxonomy=photos_keywords&post_type=attachment | 1,279 | 2.14 | 28.70 | 28.92 |
Cameras /wp-admin/edit-tags.php?taxonomy=photos_camera&post_type=attachment | 1,285 | 2.14 | 26.78 | 33.18 |
People /wp-admin/edit-tags.php?taxonomy=photos_people&post_type=attachment | 1,279 | 2.14 | 28.16 | 32.75 |
Countries /wp-admin/edit-tags.php?taxonomy=photos_country&post_type=attachment | 1,285 | 2.14 | 27.12 | 29.12 |
Lenses /wp-admin/edit-tags.php?taxonomy=photos_lens&post_type=attachment | 1,279 | 2.14 | 28.04 | 30.24 |
Prints /wp-admin/edit-tags.php?taxonomy=photos_prints&post_type=attachment | 1,282 | 2.14 | 27.39 | 30.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-comments
- widget_papt_displaytaxterms
- theysaidso_admin_options
- widget_papt_displayexif
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/photo-tools-image-taxonomies/photopress-image-taxonomies.php:995
- > 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 90% 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:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Taxonomy fields added to image attachment form.), #2 (Single Image EXIF Widget and Taxonomy Widget.)
photo-tools-image-taxonomies/photopress-image-taxonomies.php 92% from 13 tests
The main PHP file in "PhotoPress - Image Taxonomies" ver. 1.9.8 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("photo-tools-image-taxonomies.php" instead of "photopress-image-taxonomies.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
No dangerous file extensions were detected1,028 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 419 | 195 | 1,028 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 11.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 1 | 1.89% |
▷ Public methods | 53 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.17MB with 0.11MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 39.41KB | 15.09KB | ▼ 61.72% |
screenshot-1.png | 133.84KB | 38.59KB | ▼ 71.16% |