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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.11MB] [CPU: ▼143.00ms] Passed 4 tests
A check of server-side resources used by Open Graph Tags
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.18 | 45.59 ▲20.06 |
Dashboard /wp-admin | 3.21 ▲0.16 | 52.74 ▼0.48 |
Posts /wp-admin/edit.php | 3.26 ▲0.16 | 49.58 ▼2.41 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 96.04 ▼572.72 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 38.73 ▲3.63 |
Open Graph Tags /wp-admin/options-general.php?page=wp-og | 3.09 | 36.34 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 3 new options
New WordPress options |
---|
og-description |
og-post_types |
og-site_name |
Browser metrics Passed 4 tests
An overview of browser requirements for Open Graph Tags
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,911 ▲315 | 17.28 ▲1.41 | 10.16 ▲0.30 | 52.18 ▲1.99 |
Dashboard /wp-admin | 3,175 ▲241 | 7.99 ▲2.06 | 169.59 ▲23.75 | 114.97 ▼7.15 |
Posts /wp-admin/edit.php | 2,970 ▲231 | 4.27 ▲1.57 | 90.63 ▲15.93 | 88.38 ▼0.43 |
Add New Post /wp-admin/post-new.php | 1,729 ▲46 | 21.26 ▲2.57 | 262.56 ▼139.22 | 140.51 ▲29.79 |
Media Library /wp-admin/upload.php | 1,816 ▲9 | 4.66 ▼0.38 | 125.94 ▼33.34 | 125.47 ▼2.39 |
Open Graph Tags /wp-admin/options-general.php?page=wp-og | 1,628 | 3.38 | 102.44 | 83.52 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 3 options in the database
- og-description
- og-post_types
- og-site_name
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/wp-og/admin/partials/wp-og-admin-display.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wp-og/admin/partials/wp-og-meta-box.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The UI), #2 (What it looks like on Facebook)
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
wp-og/wp-og.php Passed 13 tests
The primary PHP file in "Open Graph Tags" version 0.1.2 is used by WordPress to initiate all plugin functionality
86 characters long description:
A WordPress plugin that let's you create and edit Open Graph Tags™ for your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected598 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 139 | 518 | 445 |
PO File | 1 | 27 | 35 | 88 |
JavaScript | 1 | 5 | 8 | 44 |
Markdown | 1 | 7 | 0 | 16 |
CSS | 1 | 3 | 1 | 5 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 5.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 1 | 2.94% |
▷ Public methods | 29 | 85.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.71% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected