Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼146.55ms] Passed 4 tests
This is a short check of server-side resources used by Website screenshot blocks for Gutenberg
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▲0.09 | 33.14 ▲0.62 |
Dashboard /wp-admin | 3.15 ▲0.09 | 36.49 ▼14.76 |
Posts /wp-admin/edit.php | 3.20 ▲0.09 | 46.49 ▲1.05 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.07 | 87.57 ▼571.42 |
Media Library /wp-admin/upload.php | 3.09 ▲0.09 | 32.56 ▼0.64 |
Website Screenshot /wp-admin/options-general.php?page=website-screenshot | 3.04 | 31.72 |
Server storage [IO: ▲2.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Website screenshot blocks for Gutenberg
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲78 | 15.92 ▼0.01 | 9.22 ▼1.42 | 47.14 ▼0.83 |
Dashboard /wp-admin | 2,972 ▲35 | 5.91 ▼0.06 | 153.97 ▼0.98 | 110.06 ▼2.39 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.73 ▲0.00 | 69.21 ▲0.19 | 96.76 ▲10.34 |
Add New Post /wp-admin/post-new.php | 1,684 ▲184 | 21.75 ▲2.83 | 445.39 ▲33.72 | 110.02 ▼5.23 |
Media Library /wp-admin/upload.php | 1,827 ▲17 | 5.01 ▼0.02 | 163.59 ▼6.24 | 117.59 ▼4.15 |
Website Screenshot /wp-admin/options-general.php?page=website-screenshot | 1,373 | 2.12 | 54.57 | 71.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=website-screenshot
- > Notice in wp-content/plugins/website-screenshot/lib/settings.php+140
Undefined index: waitUntilSelector
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
The following issues need your attention
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function WS\\Blocks\\add_action() in wp-content/plugins/website-screenshot/lib/enqueue-scripts.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function WS\\Blocks\\Website_Screenshot\\add_action() in wp-content/plugins/website-screenshot/blocks/website-screenshot/index.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function WS\\Blocks\\add_action() in wp-content/plugins/website-screenshot/lib/settings.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
3 plugin tags: website screenshot, screenshot, screenshotbin
website-screenshot/website-screenshot.php Passed 13 tests
The primary PHP file in "Website screenshot blocks for Gutenberg" version 1.0.0 is used by WordPress to initiate all plugin functionality
42 characters long description:
Website screenshot using screenshotbin API
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 detected9,336 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 8,102 |
JavaScript | 13 | 155 | 42 | 670 |
PHP | 4 | 87 | 103 | 416 |
SVG | 1 | 0 | 1 | 76 |
Sass | 2 | 11 | 0 | 70 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 1 | 25.00% |
▷ Public methods | 3 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 25.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin