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.02MB] [CPU: ▼4.38ms] Passed 4 tests
A check of server-side resources used by Blipfoto importer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.53 ▲2.86 |
Dashboard /wp-admin | 3.32 ▲0.02 | 52.20 ▲3.14 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 46.96 ▼2.95 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 85.38 ▼20.53 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 35.70 ▲3.12 |
Blipfoto Importer /wp-admin/tools.php?page=blipfoto-import | 3.20 | 34.18 |
Blipfoto Importer /wp-admin/options-general.php?page=blipfoto-importer-settings | 3.19 | 29.36 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
blipfoto-importer |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Blipfoto importer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲51 | 13.24 ▼1.06 | 1.82 ▼0.10 | 43.40 ▲0.71 |
Dashboard /wp-admin | 2,211 ▲23 | 5.83 ▼0.04 | 98.15 ▼7.78 | 36.33 ▼7.53 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.05 ▲0.05 | 34.71 ▼3.51 | 36.68 ▲3.24 |
Add New Post /wp-admin/post-new.php | 1,540 ▲23 | 23.10 ▲5.50 | 685.57 ▲81.12 | 52.70 ▼5.36 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.20 ▼0.06 | 103.42 ▲1.31 | 46.35 ▲2.63 |
Blipfoto Importer /wp-admin/tools.php?page=blipfoto-import | 762 | 2.02 | 26.98 | 23.68 |
Blipfoto Importer /wp-admin/options-general.php?page=blipfoto-importer-settings | 1,029 | 2.02 | 21.79 | 27.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- blipfoto-importer
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=blipfoto-importer-settings
- > Notice in wp-content/plugins/blipfoto-importer/lib/settings.php+157
Undefined index: username
- > GET request to /wp-admin/options-general.php?page=blipfoto-importer-settings
- > Notice in wp-content/plugins/blipfoto-importer/lib/settings.php+164
Undefined index: client-id
- > GET request to /wp-admin/options-general.php?page=blipfoto-importer-settings
- > Notice in wp-content/plugins/blipfoto-importer/lib/settings.php+171
Undefined index: client-secret
- > GET request to /wp-admin/options-general.php?page=blipfoto-importer-settings
- > Notice in wp-content/plugins/blipfoto-importer/lib/settings.php+178
Undefined index: access-token
- > GET request to /wp-admin/options-general.php?page=blipfoto-importer-settings
- > Notice in wp-content/plugins/blipfoto-importer/lib/settings.php+216
Undefined index: auto-insert
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
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Blipfoto\\Exceptions\\BaseException' not found in wp-content/plugins/blipfoto-importer/lib/Blipfoto/Exceptions/OAuthException.php:11
- > PHP Fatal error
Uncaught Error: Class 'Blipfoto\\Exceptions\\BaseException' not found in wp-content/plugins/blipfoto-importer/lib/Blipfoto/Exceptions/ApiResponseException.php:11
- > PHP Fatal error
Uncaught Error: Class 'Blipfoto\\Exceptions\\BaseException' not found in wp-content/plugins/blipfoto-importer/lib/Blipfoto/Exceptions/NetworkException.php:11
- > PHP Fatal error
Uncaught Error: Class 'Blipfoto\\Exceptions\\BaseException' not found in wp-content/plugins/blipfoto-importer/lib/Blipfoto/Exceptions/InvalidResponseException.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: journal, import, photography, blipfoto, blipfotocom
blipfoto-importer/blipfoto-importer.php Passed 13 tests
This is the main PHP file of "Blipfoto importer" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
66 characters long description:
Import entries from a Blipfoto journal into your WordPress website
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
Good job! No executable or dangerous file extensions detected698 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 341 | 220 | 651 |
Markdown | 1 | 28 | 0 | 47 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 5.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 4 | 8.33% |
▷ Public methods | 43 | 89.58% |
▷ Protected methods | 2 | 4.17% |
▷ Private methods | 3 | 6.25% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 7 | |
▷ Global constants | 2 | 28.57% |
▷ Class constants | 5 | 71.43% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin