Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▼0.17ms] Passed 4 tests
This is a short check of server-side resources used by URL-Preview-Box
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 45.37 ▲7.28 |
Dashboard /wp-admin | 3.64 ▲0.33 | 50.23 ▼2.57 |
Posts /wp-admin/edit.php | 3.74 ▲0.39 | 50.51 ▲3.76 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.35 | 90.62 ▼7.68 |
Media Library /wp-admin/upload.php | 3.58 ▲0.35 | 41.28 ▲5.83 |
URL Preview /wp-admin/admin.php?page=gurlpb_adminmenu | 3.55 | 36.63 |
Statistics /wp-admin/admin.php?page=gurlpb_statistics | 3.55 | 35.73 |
Cache /wp-admin/admin.php?page=gurlpb_cache_settings | 3.55 | 35.60 |
Server storage [IO: ▲1.89MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 52 new files
Database: no new tables, 13 new options
New WordPress options |
---|
gurlpb-random |
gurlpb-showexcerpt |
gurlpb-hide-setting-a |
can_compress_scripts |
widget_recent-comments |
gurlpb-admin-id |
widget_recent-posts |
gurlpb-setting-a |
theysaidso_admin_options |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for URL-Preview-Box
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,893 ▲158 | 13.31 ▼1.08 | 2.20 ▲0.53 | 42.48 ▲2.47 |
Dashboard /wp-admin | 2,260 ▲75 | 5.02 ▼0.86 | 101.43 ▲0.35 | 73.29 ▲27.09 |
Posts /wp-admin/edit.php | 2,144 ▲52 | 2.23 ▲0.19 | 34.97 ▼9.74 | 33.82 ▼5.35 |
Add New Post /wp-admin/post-new.php | 6,292 ▲4,772 | 19.71 ▼3.55 | 952.21 ▲346.42 | 57.10 ▼3.82 |
Media Library /wp-admin/upload.php | 1,434 ▲49 | 4.26 ▲0.05 | 101.37 ▲4.86 | 65.34 ▲21.97 |
URL Preview /wp-admin/admin.php?page=gurlpb_adminmenu | 903 | 1.76 | 32.11 | 27.28 |
Statistics /wp-admin/admin.php?page=gurlpb_statistics | 847 | 2.17 | 31.67 | 23.77 |
Cache /wp-admin/admin.php?page=gurlpb_cache_settings | 870 | 1.92 | 26.36 | 26.09 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 12 options in the database
- widget_recent-posts
- gurlpb-random
- gurlpb-setting-a
- db_upgraded
- gurlpb-hide-setting-a
- widget_recent-comments
- widget_theysaidso_widget
- gurlpb-boxes
- gurlpb-admin-id
- theysaidso_admin_options
- ...
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)
Everything seems fine, however this is by no means 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
Please fix the following items
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/good-url-preview-box/gurlpb-utils.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/good-url-preview-box/blocks/gurlpb.php:56
- > PHP Fatal error
Uncaught Error: Class 'Gurlpb_utils' not found in wp-content/plugins/good-url-preview-box/gurlpb-deactivated.php:2
- > PHP Fatal error
Uncaught Error: Class 'Gurlpb_utils' not found in wp-content/plugins/good-url-preview-box/gurlpb-start.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/good-url-preview-box/gute-url-preview-box.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/good-url-preview-box/gurlpb-activated.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== good-url-preview-box ===
) - Screenshots: Add images for these screenshots: #1 (First screen. Register to use full functionality.), #2 (Writing an post and adding an URL for the spacex.com career.)
- Tags: There are too many tags (20 tag instead of maximum 10)
good-url-preview-box/gute-url-preview-box.php 85% from 13 tests
The primary PHP file in "URL-Preview-Box" version 1.20 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("good-url-preview-box.php" instead of "gute-url-preview-box.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,987 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 249 | 66 | 1,770 |
JavaScript | 2 | 31 | 50 | 174 |
CSS | 3 | 13 | 11 | 43 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 28.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 16.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 99.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 14 | 100.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 30 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
12 PNG files occupy 1.11MB with 0.72MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
gurlpb_wordpress-editor-icon.png | 9.45KB | 5.46KB | ▼ 42.25% |
gurlpb-example1.png | 47.46KB | 13.82KB | ▼ 70.87% |
gutenberg-post-1.png | 105.01KB | 30.12KB | ▼ 71.32% |
gutenberg-post-6.png | 121.09KB | 35.11KB | ▼ 71.01% |
gutenberg-post-4.png | 116.69KB | 34.26KB | ▼ 70.64% |