Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.15ms] Passed 4 tests
This is a short check of server-side resources used by Description: Get basic website information from any given URL, in JSON format, and creating visual preview for inserting into content
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.47 ▼1.76 |
Dashboard /wp-admin | 3.34 ▲0.04 | 48.18 ▼2.15 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 50.59 ▲3.17 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 97.31 ▼6.60 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.93 ▲1.92 |
RK Link Preview /wp-admin/options-general.php?page=rkl-settings | 3.27 | 35.22 |
Server storage [IO: ▲1.81MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
rklp_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Description: Get basic website information from any given URL, in JSON format, and creating visual preview for inserting into content
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,953 ▲218 | 14.81 ▲0.38 | 1.93 ▲0.32 | 36.76 ▼10.16 |
Dashboard /wp-admin | 2,354 ▲163 | 6.48 ▲1.57 | 127.96 ▲27.14 | 49.27 ▲5.65 |
Posts /wp-admin/edit.php | 2,277 ▲188 | 3.53 ▲1.53 | 57.50 ▲17.53 | 45.21 ▲9.18 |
Add New Post /wp-admin/post-new.php | 1,363 ▼156 | 16.88 ▼6.41 | 517.13 ▼238.72 | 39.72 ▼16.42 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.16 ▼0.07 | 80.86 ▼27.12 | 46.64 ▼0.31 |
RK Link Preview /wp-admin/options-general.php?page=rkl-settings | 1,048 | 3.10 | 43.72 | 37.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 items
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rk-link-preview/core/controller/rklp_admin.class.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rk-link-preview/core/controller/rklp_admin.class.php:13
- > PHP Fatal error
Uncaught Error: Class 'rklp_controller' not found in wp-content/plugins/rk-link-preview/core/controller/rklp_editor.class.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/rk-link-preview/core/view/options/templates.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/rk-link-preview/core/view/options/general.php:11
- > PHP Fatal error
Uncaught Error: Class 'rklp_controller' not found in wp-content/plugins/rk-link-preview/core/controller/rklp_admin.class.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Plugin Name: You should set the name of your plugin on the first line (
=== Description: Get basic website information from any given URL, in JSON format, and creating visual preview for inserting into content ===
) - Contributors: Plugin contributors not specified
- Screenshots: No descriptions were found for these screenshots #3, #4, #5 in rk-link-preview/assets to your readme.txt
rk-link-preview/rk-link-preview.php Passed 13 tests
The entry point to "Description: Get basic website information from any given URL, in JSON format, and creating visual preview for inserting into content" version 1.0 is a PHP file that has certain tags in its header comment area
120 characters long description:
Get basic website information from any given URL, in JSON format, and creating visual preview for inserting into content
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin24,758 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 20,478 |
JavaScript | 9 | 300 | 131 | 1,786 |
CSS | 4 | 0 | 44 | 1,440 |
LESS | 10 | 53 | 21 | 691 |
PHP | 8 | 67 | 27 | 362 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 8.67 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 18.18% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/build/img/facebook.png | 5.57KB | 3.52KB | ▼ 36.74% |
assets/build/img/twitter.png | 13.24KB | 8.15KB | ▼ 38.44% |
assets/build/img/instagram.png | 9.17KB | 9.14KB | 0.36% |