Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼187.78ms] Passed 4 tests
An overview of server-side resources used by WP Image Importer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.03 ▲0.20 | 37.09 ▲1.35 |
Dashboard /wp-admin | 3.10 ▲0.05 | 29.24 ▼16.49 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 33.68 ▼15.24 |
Add New Post /wp-admin/post-new.php | 5.16 ▼0.27 | 74.97 ▼713.82 |
Media Library /wp-admin/upload.php | 3.12 ▲0.12 | 28.17 ▼5.56 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 112 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for WP Image Importer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,768 ▲172 | 16.08 ▲0.29 | 10.28 ▲1.08 | 45.86 ▲1.08 |
Dashboard /wp-admin | 3,059 ▲128 | 6.23 ▲0.28 | 142.57 ▼5.46 | 110.36 ▲3.15 |
Posts /wp-admin/edit.php | 2,841 ▲102 | 2.62 ▼0.08 | 83.07 ▲15.80 | 97.23 ▲10.49 |
Add New Post /wp-admin/post-new.php | 1,667 ▲52 | 18.86 ▼2.52 | 380.53 ▲81.16 | 105.14 ▼1.54 |
Media Library /wp-admin/upload.php | 1,847 ▲40 | 5.07 ▲0.01 | 157.05 ▼3.02 | 119.12 ▲2.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 41× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/wp-image-importer/Facebook/GraphNodes/GraphObject.php:34
- > PHP Fatal error
Uncaught Error: Interface 'Facebook\\Url\\UrlDetectionInterface' not found in wp-content/plugins/wp-image-importer/Facebook/Url/FacebookUrlDetectionHandler.php:31
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/wp-image-importer/Facebook/GraphNodes/GraphPicture.php:31
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\FileUpload\\FacebookFile' not found in wp-content/plugins/wp-image-importer/Facebook/FileUpload/FacebookVideo.php:31
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\Helpers\\FacebookSignedRequestFromInputHelper' not found in wp-content/plugins/wp-image-importer/Facebook/Helpers/FacebookCanvasHelper.php:31
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/wp-image-importer/Facebook/GraphNodes/GraphAchievement.php:32
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/wp-image-importer/Facebook/GraphNodes/GraphSessionInfo.php:31
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/wp-image-importer/Facebook/GraphNodes/GraphLocation.php:31
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/wp-image-importer/Facebook/GraphNodes/GraphApplication.php:32
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\Collection' not found in wp-content/plugins/wp-image-importer/Facebook/GraphNodes/GraphEdge.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 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
Attributes that need to be fixed:
- Screenshots: Please add an image for screenshot #1 (Setting page)
- Tags: You are using too many tags: 17 tag instead of maximum 10
- Screenshots: Add a description for screenshot #0 in wp-image-importer/assets to your readme.txt
wp-image-importer/wp-image-importer.php Passed 13 tests
The main file in "WP Image Importer" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
66 characters long description:
WP Image Importer Plugin allows to easily import Images into Posts
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
No dangerous file extensions were detected8,040 lines of code in 93 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 84 | 1,160 | 5,634 | 6,263 |
CSS | 2 | 25 | 18 | 740 |
JavaScript | 6 | 75 | 78 | 740 |
PO File | 1 | 136 | 164 | 297 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 6.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 1.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 5 | |
Traits | 1 | |
Classes | 69 | |
▷ Abstract classes | 1 | 1.45% |
▷ Concrete classes | 68 | 98.55% |
▷ Final classes | 0 | 0.00% |
Methods | 518 | |
▷ Static methods | 17 | 3.28% |
▷ Public methods | 474 | 91.51% |
▷ Protected methods | 25 | 4.83% |
▷ Private methods | 19 | 3.67% |
Functions | 5 | |
▷ Named functions | 2 | 40.00% |
▷ Anonymous functions | 3 | 60.00% |
Constants | 31 | |
▷ Global constants | 8 | 25.81% |
▷ Class constants | 23 | 74.19% |
▷ Public constants | 23 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
9 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/album.png | 0.59KB | 0.66KB | 0.00% |
assets/images/settings.png | 0.65KB | 0.76KB | 0.00% |
assets/images/pictures.png | 2.80KB | 2.27KB | ▼ 19.00% |
assets/images/wordpress.png | 1.97KB | 2.19KB | 0.00% |
assets/images/picture.png | 0.63KB | 0.56KB | ▼ 10.78% |