Benchmarks
Plugin footprint Passed 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.03MB] [CPU: ▼139.22ms] Passed 4 tests
This is a short check of server-side resources used by Open Graph link tile
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 33.96 ▲7.93 |
Dashboard /wp-admin | 3.10 ▲0.04 | 44.11 ▼2.00 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 44.65 ▲0.40 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 86.86 ▼556.16 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 35.36 ▲0.90 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Open Graph link tile
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,705 ▲109 | 15.93 ▲0.27 | 9.29 ▲1.34 | 48.36 ▼3.46 |
Dashboard /wp-admin | 2,967 ▲33 | 5.91 ▼0.06 | 134.12 ▼2.34 | 114.51 ▼2.12 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▼0.00 | 63.81 ▲1.63 | 87.01 ▲5.91 |
Add New Post /wp-admin/post-new.php | 1,672 ▼4 | 18.89 ▲0.01 | 363.69 ▼3.27 | 116.32 ▲4.60 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.00 ▼0.03 | 144.99 ▼3.74 | 116.73 ▼1.31 |
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 completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/open-graph-link-tile/khlt_main.php:65
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: link, ogp
open-graph-link-tile/khlt_main.php 85% from 13 tests
The primary PHP file in "Open Graph link tile" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 154 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("open-graph-link-tile.php" instead of "khlt_main.php")
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
Good job! No executable or dangerous file extensions detected216 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 40 | 91 | 160 |
CSS | 1 | 0 | 0 | 56 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 3.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 2 | 18.18% |
▷ Public methods | 10 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 9.09% |
Functions | 2 | |
▷ Named functions | 2 | 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
No PNG images were found in this plugin