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.06MB] [CPU: ▼6.05ms] Passed 4 tests
An overview of server-side resources used by Open Graph Protocol Tools
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 38.97 ▼4.07 |
Dashboard /wp-admin | 3.37 ▲0.06 | 47.94 ▼0.25 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 50.06 ▼2.73 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 85.79 ▼17.13 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.72 ▲0.16 |
Open Graph Protocol /wp-admin/options-general.php?page=opengraphprotocoltools | 3.23 | 27.90 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Open Graph Protocol Tools
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲78 | 13.18 ▼1.19 | 1.91 ▲0.19 | 37.95 ▼5.45 |
Dashboard /wp-admin | 2,210 ▲25 | 5.77 ▼0.09 | 101.98 ▲1.46 | 37.48 ▼7.75 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.03 ▲0.02 | 34.47 ▼8.05 | 37.92 ▼0.69 |
Add New Post /wp-admin/post-new.php | 1,545 ▲22 | 18.22 ▼4.90 | 611.04 ▼91.68 | 57.69 ▼2.75 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.22 ▲0.03 | 101.02 ▼1.38 | 41.24 ▼6.50 |
Open Graph Protocol /wp-admin/options-general.php?page=opengraphprotocoltools | 815 | 2.15 | 22.78 | 23.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=opengraphprotocoltools
- > Notice in wp-content/plugins/open-graph-protocol-tools/open-graph-protocol-tools.php+69
Only variables should be passed by reference
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 take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/open-graph-protocol-tools/open-graph-protocol-tools.php:368
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== open-graph-protocol-tools ===
)
open-graph-protocol-tools/open-graph-protocol-tools.php Passed 13 tests
The main PHP script in "Open Graph Protocol Tools" version 1.91 is automatically included on every request by WordPress
29 characters long description:
Tools for Open Graph Protocol
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin283 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 49 | 40 | 283 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
default.png | 3.65KB | 3.78KB | 0.00% |