Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼0.85ms] Passed 4 tests
Analyzing server-side resources used by Open Graph, Google Plus/Schema.org, Twitter Card Tags for WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.22 | 42.48 ▲3.65 |
Dashboard /wp-admin | 3.52 ▲0.21 | 47.92 ▲0.93 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 44.53 ▼0.92 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 91.97 ▼2.88 |
Media Library /wp-admin/upload.php | 3.45 ▲0.21 | 34.81 ▼0.54 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
heateor_ogmt_version |
heateor_ogmt |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Open Graph, Google Plus/Schema.org, Twitter Card Tags for WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,861 ▲115 | 14.41 ▲0.21 | 1.95 ▲0.15 | 44.01 ▲6.25 |
Dashboard /wp-admin | 2,213 ▲36 | 5.55 ▼0.07 | 104.97 ▲19.27 | 73.05 ▲30.07 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 1.98 ▼0.04 | 34.99 ▼2.69 | 31.65 ▼3.05 |
Add New Post /wp-admin/post-new.php | 6,238 ▲4,704 | 18.98 ▲0.53 | 977.40 ▲350.28 | 64.53 ▼0.92 |
Media Library /wp-admin/upload.php | 1,409 ▲15 | 4.21 ▼0.05 | 97.31 ▼2.55 | 77.52 ▲34.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- heateor_ogmt_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/heateor-open-graph-meta-tags/uninstall.php
- > /wp-content/plugins/heateor-open-graph-meta-tags/admin/partials/heateor-open-graph-meta-tags-about.php
- > /wp-content/plugins/heateor-open-graph-meta-tags/heateor-open-graph-meta-tags.php
- > /wp-content/plugins/heateor-open-graph-meta-tags/admin/partials/heateor-open-graph-meta-tags-options-page.php
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: seo, open graph, twitter cards, twitter card, facebook open graph...
heateor-open-graph-meta-tags/heateor-open-graph-meta-tags.php 92% from 13 tests
The main file in "Open Graph, Google Plus/Schema.org, Twitter Card Tags for WordPress" v. 1.1.11 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 149 characters long)
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
Success! There were no dangerous files found in this plugin1,815 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 303 | 428 | 1,739 |
JavaScript | 3 | 8 | 0 | 73 |
CSS | 1 | 0 | 0 | 3 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please tend to the following items
- Please reduce cyclomatic complexity of methods to less than 100 (currently 154)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 87.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 208.00 |
Average method complexity | 7.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 154.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 | 40 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 31 | 77.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 22.50% |
Functions | 4 | |
▷ Named functions | 4 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/close.png | 1.45KB | 1.66KB | 0.00% |
images/star.png | 0.65KB | 0.72KB | 0.00% |
images/transparent_bg.png | 0.91KB | 0.09KB | ▼ 89.70% |
images/info.png | 0.77KB | 0.58KB | ▼ 25.13% |
images/logo.png | 1.18KB | 1.33KB | 0.00% |