Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.18MB] [CPU: ▲0.44ms] Passed 4 tests
This is a short check of server-side resources used by Open Graph and Twitter Card Tags
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 42.43 ▲0.83 |
Dashboard /wp-admin | 3.47 ▲0.17 | 46.56 ▼2.11 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 47.50 ▼2.19 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 91.10 ▲8.71 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 34.54 ▲5.21 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
wonderm00n_open_graph_version |
theysaidso_admin_options |
widget_recent-posts |
wonderm00n_open_graph_settings |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Open Graph and Twitter Card Tags: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲78 | 14.37 ▲0.01 | 1.64 ▼0.08 | 37.96 ▼5.88 |
Dashboard /wp-admin | 2,199 ▲19 | 5.60 ▼0.01 | 90.75 ▼8.22 | 40.15 ▼5.62 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.94 ▼0.01 | 41.21 ▲0.70 | 38.13 ▲6.36 |
Add New Post /wp-admin/post-new.php | 6,267 ▲4,738 | 18.96 ▼3.95 | 868.87 ▲301.38 | 54.73 ▲3.17 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.18 ▼0.04 | 95.20 ▼3.96 | 40.05 ▼1.29 |
Open Graph and Twitter Card Tags /wp-admin/class-webdados-fb-open-graph-admin.php | 26 | 0.41 | 0.09 | 13.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- wonderm00n_open_graph_version
- theysaidso_admin_options
- wonderm00n_open_graph_settings
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wonderm00ns-simple-facebook-open-graph-tags/admin/options-page-right.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/class-webdados-fb-open-graph-admin.php
- > Network (severe)
wp-admin/class-webdados-fb-open-graph-admin.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% 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
These attributes need your attention:
- Tags: You are using too many tags: 19 tag instead of maximum 10
wonderm00ns-simple-facebook-open-graph-tags/wonderm00n-open-graph.php 85% from 13 tests
The principal PHP file in "Open Graph and Twitter Card Tags" v. 3.3.2 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 186 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("wonderm00ns-simple-facebook-open-graph-tags.php" instead of "wonderm00n-open-graph.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected5,446 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 342 | 430 | 3,389 |
XML | 1 | 0 | 0 | 1,631 |
JavaScript | 1 | 24 | 12 | 273 |
CSS | 1 | 10 | 5 | 111 |
JSON | 1 | 0 | 0 | 42 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 259)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 148.33 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 354.00 |
Average method complexity | 9.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 259.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 | 51 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 40 | 78.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 21.57% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
No PNG images were found in this plugin