Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲4.14MB] [CPU: ▼264.09ms] Passed 4 tests
Analyzing server-side resources used by Photography Management - WordPress Photo Proofing Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.79 ▲4.28 | 78.60 ▲30.13 |
Dashboard /wp-admin | 7.57 ▲4.17 | 59.74 ▲27.59 |
Posts /wp-admin/edit.php | 7.81 ▲4.17 | 66.29 ▲28.72 |
Add New Post /wp-admin/post-new.php | 11.05 ▲4.08 | 119.33 ▼1,136.15 |
Media Library /wp-admin/upload.php | 7.45 ▲4.16 | 48.41 ▲23.47 |
Support /wp-admin/edit.php?post_type=client&page=phmm_support | 7.26 | 43.48 |
Premium /wp-admin/edit.php?post_type=client&page=premium | 7.35 | 43.26 |
Settings /wp-admin/edit.php?post_type=client&page=options | 7.61 | 49.74 |
/wp-admin/index.php?page=cc-phmm-setup | 7.27 | 40.23 |
Galleries /wp-admin/edit.php?post_type=client | 7.50 | 50.65 |
New gallery /wp-admin/post-new.php?post_type=client | 7.63 | 62.45 |
Server storage [IO: ▲10.84MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 456 new files
Database: 1 new table, 11 new options
New tables |
---|
codeneric_phmm_comments |
New WordPress options |
---|
codeneric/phmm/labels/all |
codeneric/phmm/install_time |
cc_phmm_default_thumbnail_id |
cc_photo_manage_curr_version |
cc_photo_manage_id |
codeneric_phmm_plugin_settings |
cc_photo_settings |
codeneric_phmm_legacy__aware_of_modes |
codeneric/phmm/admin_secret |
codeneric_phmm_error_log |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Photography Management - WordPress Photo Proofing Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,856 ▲98 | 16.28 ▲0.69 | 5.68 ▼1.43 | 2.24 ▼0.71 |
Dashboard /wp-admin | 2,982 ▲124 | 6.15 ▼0.03 | 119.17 ▼18.46 | 155.09 ▼10.47 |
Posts /wp-admin/edit.php | 2,781 ▲93 | 3.25 ▲0.01 | 70.46 ▲6.53 | 144.95 ▲1.23 |
Add New Post /wp-admin/post-new.php | 1,701 ▼18 | 21.35 ▼1.16 | 418.89 ▼4.89 | 148.45 ▼11.33 |
Media Library /wp-admin/upload.php | 1,817 ▲122 | 5.71 ▲0.23 | 154.13 ▼0.50 | 180.82 ▼20.41 |
Support /wp-admin/edit.php?post_type=client&page=phmm_support | 131 | 3.47 | 59.57 | 98.95 |
Premium /wp-admin/edit.php?post_type=client&page=premium | 1,146 | 5.57 | 122.51 | 119.06 |
Settings /wp-admin/edit.php?post_type=client&page=options | 1,856 | 9.29 | 168.86 | 149.74 |
/wp-admin/index.php?page=cc-phmm-setup | 131 | 3.51 | 60.21 | 99.86 |
Galleries /wp-admin/edit.php?post_type=client | 1,493 | 3.17 | 63.82 | 115.34 |
New gallery /wp-admin/post-new.php?post_type=client | 1,792 | 11.00 | 242.43 | 144.26 |
Uninstaller [IO: ▲0.24MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie tables detected upon uninstall: 1 table
- codeneric_phmm_comments
- Zombie WordPress options detected upon uninstall: 11 options
- cc_photo_manage_id
- codeneric_phmm_install_wizard_was_open
- codeneric_phmm_plugin_settings
- codeneric_phmm_error_log
- codeneric/phmm/labels/all
- codeneric/phmm/admin_secret
- codeneric/phmm/install_time
- codeneric_phmm_legacy__aware_of_modes
- cc_phmm_default_thumbnail_id
- cc_photo_manage_curr_version
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 19 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=client
- > User notice in wp-includes/functions.php+5768
WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 8× PHP files output text when accessed directly:
- > /wp-content/plugins/photography-management/vendor/analog/analog/examples/multi.php
- > /wp-content/plugins/photography-management/vendor/analog/analog/examples/levelbuffer.php
- > /wp-content/plugins/photography-management/vendor/analog/analog/examples/threshold.php
- > /wp-content/plugins/photography-management/vendor/analog/analog/examples/file.php
- > /wp-content/plugins/photography-management/vendor/analog/analog/examples/variable.php
- > /wp-content/plugins/photography-management/vendor/analog/analog/examples/default.php
- > /wp-content/plugins/photography-management/vendor/analog/analog/examples/psr-0.php
- > /wp-content/plugins/photography-management/vendor/studio24/rotate/tests/src/bootstrap.php
- 386× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined index: HACKLIB_ROOT in wp-content/plugins/photography-management/code/tests/tests/includes/LabelTest.php on line 2
- > PHP Fatal error
require_once(): Failed opening required '' (include_path='.:/usr/share/php') in wp-content/plugins/photography-management/code/includes/migrator.php on line 3
- > PHP Fatal error
Uncaught Error: Interface 'NinjaMutex\\Lock\\Fabric\\LockFabricWithExpirationInterface' not found in wp-content/plugins/photography-management/vendor/arvenil/ninja-mutex/tests/NinjaMutex/Lock/Fabric/MemcacheLockFabric.php:7
- > PHP Notice
Undefined index: HACKLIB_ROOT in wp-content/plugins/photography-management/code/tests/tests/admin/ajax/EndpointsTest.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'JsonSchema\\Exception\\RuntimeException' not found in wp-content/plugins/photography-management/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidSchemaException.php:7
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/photography-management/lib/hacklib/containers/helper_traitsSEP..SEPcollections.ns.php' (include_path='.:/usr/share/php') in wp-content/plugins/photography-management/lib/hacklib/containers/helper_traits/hacklib_commonContainerMethods.php on line 13
- > PHP Warning
require_once(wp-content/plugins/photography-management/code/includes): failed to open stream: Success in /var/www/wordpress/wp-content/plugins/photography-management/code/includes/semaphore.php on line 3
- > PHP Fatal error
require_once(): Failed opening required '' (include_path='.:/usr/share/php') in wp-content/plugins/photography-management/code/shapesfn.php on line 2
- > PHP Fatal error
require_once(): Failed opening required '' (include_path='.:/usr/share/php') in wp-content/plugins/photography-management/code/includes/i18n.php on line 3
- > PHP Fatal error
require_once(): Failed opening required '' (include_path='.:/usr/share/php') in wp-content/plugins/photography-management/code/admin/update_functions.php on line 3
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/edit.php?post_type=client&page=premium
- > Network (severe)
https://wpps.codeneric.com/paid?plugin_id=623e7affe050b259569354 - Failed to load resource: the server responded with a status of 402 ()
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: portrait photography, photo password protection, wedding photography, photo proofing
photography-management/photography_management.php 85% from 13 tests
The primary PHP file in "Photography Management - WordPress Photo Proofing Plugin" version 4.5.8 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("photography-management.php" instead of "photography_management.php")
- Git Repository: Please remove the Git repository from this plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected28,197 lines of code in 402 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 261 | 2,086 | 5,103 | 23,508 |
JSON | 65 | 67 | 0 | 2,958 |
CSS | 9 | 252 | 482 | 749 |
Markdown | 7 | 185 | 0 | 486 |
JavaScript | 45 | 15 | 656 | 224 |
HTML | 1 | 15 | 1 | 108 |
YAML | 4 | 10 | 0 | 70 |
XML | 4 | 7 | 0 | 69 |
Bourne Shell | 4 | 9 | 0 | 21 |
INI | 1 | 0 | 0 | 3 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 7.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 155.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 44 | |
Interfaces | 38 | |
Traits | 20 | |
Classes | 250 | |
▷ Abstract classes | 7 | 2.80% |
▷ Concrete classes | 243 | 97.20% |
▷ Final classes | 37 | 15.23% |
Methods | 1,715 | |
▷ Static methods | 501 | 29.21% |
▷ Public methods | 1,442 | 84.08% |
▷ Protected methods | 112 | 6.53% |
▷ Private methods | 161 | 9.39% |
Functions | 223 | |
▷ Named functions | 84 | 37.67% |
▷ Anonymous functions | 139 | 62.33% |
Constants | 132 | |
▷ Global constants | 2 | 1.52% |
▷ Class constants | 130 | 98.48% |
▷ Public constants | 130 | 100.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
8 compressed PNG files occupy 0.61MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
code/assets/js/9baccd8a016faed071c1cc62e5cc1681.png | 2.26KB | 2.26KB | 0.00% |
code/assets/img/placeholder.png | 10.73KB | 5.63KB | ▼ 47.53% |
code/assets/js/683ddcdb692098ac8be769297e872ede.png | 3.76KB | 3.75KB | 0.29% |
code/assets/js/505b4ee15743a18eb37a46745c6c5802.png | 260.84KB | 263.33KB | 0.00% |
code/assets/js/c30bc3c310d0a352194e119634548c1b.png | 243.92KB | 246.22KB | 0.00% |