Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.29ms] Passed 4 tests
Server-side resources used by PhotoShelter Importer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.12 ▲1.98 |
Dashboard /wp-admin | 3.33 ▼0.02 | 58.41 ▼0.02 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.44 ▼1.99 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 96.93 ▲0.61 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.80 ▼3.75 |
PS Importer /wp-admin/options-general.php?page=photoshelter-importer-settings | 3.22 | 29.49 |
Server storage [IO: ▲5.58MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 71 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for PhotoShelter Importer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.36 ▲0.01 | 1.80 ▲0.22 | 43.51 ▲2.71 |
Dashboard /wp-admin | 2,201 ▲20 | 5.63 ▼0.08 | 86.24 ▼17.29 | 41.71 ▼1.12 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.99 ▼0.04 | 33.19 ▼7.88 | 35.30 ▼6.59 |
Add New Post /wp-admin/post-new.php | 6,211 ▲4,676 | 19.26 ▲0.88 | 914.24 ▲247.68 | 47.19 ▼25.78 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.19 ▼0.01 | 94.15 ▼19.33 | 44.34 ▼3.83 |
PS Importer /wp-admin/options-general.php?page=photoshelter-importer-settings | 811 | 2.03 | 23.90 | 26.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'PhotoShelter\\Importer\\API\\RemoteSource' not found in wp-content/plugins/photoshelter-importer/includes/classes/API/OAuth/DataSource.php:15
- > PHP Fatal error
Uncaught Error: Class 'PhotoShelter\\Importer\\API\\ClientRemote' not found in wp-content/plugins/photoshelter-importer/includes/classes/API/OAuth/Client.php:16
- > PHP Fatal error
Uncaught Error: Class 'PhotoShelter\\Importer\\API\\ClientRemote' not found in wp-content/plugins/photoshelter-importer/includes/classes/API/Media/Client.php:16
- > PHP Fatal error
Uncaught Error: Class 'PhotoShelter\\Importer\\API\\RemoteSource' not found in wp-content/plugins/photoshelter-importer/includes/classes/API/User/DataSource.php:15
- > PHP Fatal error
Uncaught Error: Class 'PhotoShelter\\Importer\\API\\RemoteSource' not found in wp-content/plugins/photoshelter-importer/includes/classes/API/Media/DataSource.php:17
- > PHP Fatal error
Uncaught Error: Class 'PhotoShelter\\Importer\\APIv3\\ClientRemote' not found in wp-content/plugins/photoshelter-importer/includes/classes/APIv3/Organization/Client.php:15
- > PHP Fatal error
Uncaught Error: Class 'PhotoShelter\\Importer\\API\\RemoteSource' not found in wp-content/plugins/photoshelter-importer/includes/classes/API/Auth/DataSource.php:15
- > PHP Fatal error
Uncaught Error: Class 'PhotoShelter\\Importer\\API\\ClientRemote' not found in wp-content/plugins/photoshelter-importer/includes/classes/API/Auth/Client.php:15
- > PHP Fatal error
Uncaught Error: Class 'PhotoShelter\\Importer\\APIv3\\RemoteSource' not found in wp-content/plugins/photoshelter-importer/includes/classes/APIv3/Organization/DataSource.php:15
- > PHP Fatal error
Uncaught Error: Class 'PhotoShelter\\Importer\\API\\ClientRemote' not found in wp-content/plugins/photoshelter-importer/includes/classes/API/User/Client.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #2, #3, #4, #5 in photoshelter-importer/assets to your readme.txt
photoshelter-importer/photoshelter-importer.php Passed 13 tests
The main file in "PhotoShelter Importer" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
62 characters long description:
PhotoShelter Digital Asset Manager integration with WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin2,596 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 353 | 845 | 1,546 |
SVG | 32 | 20 | 23 | 1,043 |
CSS | 4 | 0 | 0 | 4 |
JavaScript | 3 | 0 | 3 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 2.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 4 | 28.57% |
▷ Concrete classes | 10 | 71.43% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 76.47% |
▷ Protected methods | 8 | 23.53% |
▷ Private methods | 0 | 0.00% |
Functions | 47 | |
▷ Named functions | 45 | 95.74% |
▷ Anonymous functions | 2 | 4.26% |
Constants | 17 | |
▷ Global constants | 17 | 100.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
5 PNG files occupy 0.29MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
.wordpress-org/icon-128x128.png | 10.26KB | 3.72KB | ▼ 63.74% |
.wordpress-org/screenshot-4.png | 106.53KB | 29.51KB | ▼ 72.30% |
.wordpress-org/icon-256x256.png | 31.03KB | 6.55KB | ▼ 78.89% |
.wordpress-org/screenshot-5.png | 104.75KB | 37.99KB | ▼ 63.74% |
.wordpress-org/screenshot-3.png | 40.84KB | 16.48KB | ▼ 59.64% |