Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.71ms] Passed 4 tests
A check of server-side resources used by Opengraph and Microdata Generator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.42 ▼0.04 | 27.31 ▼15.81 |
Dashboard /wp-admin | 3.34 ▲0.04 | 47.48 ▼1.95 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 51.30 ▼5.83 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 84.38 ▼3.24 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 40.78 ▲3.19 |
OpenGraph /wp-admin/options-general.php?page=og-settings | 3.23 | 30.41 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
wpogmclocale |
widget_recent-comments |
theysaidso_admin_options |
wpogmcwordlimit |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Opengraph and Microdata Generator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲56 | 14.33 ▲0.05 | 1.80 ▲0.30 | 43.21 ▲2.26 |
Dashboard /wp-admin | 2,199 ▲19 | 5.63 ▼0.02 | 82.93 ▼4.33 | 39.60 ▼3.21 |
Posts /wp-admin/edit.php | 2,101 ▲4 | 2.03 ▲0.05 | 38.77 ▼1.43 | 32.37 ▼6.34 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.11 ▼0.57 | 685.15 ▼8.22 | 66.19 ▲16.45 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.18 ▼0.03 | 98.25 ▼18.20 | 45.77 ▼2.74 |
OpenGraph /wp-admin/options-general.php?page=og-settings | 1,322 | 2.12 | 24.04 | 45.16 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 8 options in the database
- theysaidso_admin_options
- wpogmcwordlimit
- widget_recent-posts
- widget_theysaidso_widget
- wpogmclocale
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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 server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/opengraph-and-microdata-generator/opengraph-microdata.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Sample Output from the plugin), #2 (Settings Page)
opengraph-and-microdata-generator/opengraph-microdata.php 85% from 13 tests
The primary PHP file in "Opengraph and Microdata Generator" version 3.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 158 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("opengraph-and-microdata-generator.php" instead of "opengraph-microdata.php")
Code Analysis Passed 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 detected243 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 20 | 17 | 243 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
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 | 7 | |
▷ Named functions | 7 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 22.65KB | 8.15KB | ▼ 64.04% |
images/thumbnail.png | 55.50KB | 26.91KB | ▼ 51.51% |
screenshot-2.png | 23.09KB | 9.68KB | ▼ 58.08% |
screenshot-1.png | 72.96KB | 25.28KB | ▼ 65.35% |