Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.36ms] Passed 4 tests
This is a short check of server-side resources used by Simple Open Graphs
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.08 ▼9.41 |
Dashboard /wp-admin | 3.34 ▲0.04 | 45.52 ▲0.75 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 44.47 ▼5.34 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 81.22 ▼18.73 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.37 ▲0.03 |
Simple Open Graphs /wp-admin/tools.php?page=simple-open-graphs | 3.23 | 30.62 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Open Graphs
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.37 ▼1.01 | 4.44 ▲2.50 | 42.45 ▲2.00 |
Dashboard /wp-admin | 2,213 ▲25 | 5.76 ▼0.15 | 93.92 ▼7.37 | 37.86 ▼2.24 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.16 | 34.40 ▼1.45 | 37.77 ▲3.11 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.10 ▲5.42 | 695.40 ▲31.55 | 62.84 ▲9.69 |
Media Library /wp-admin/upload.php | 1,386 ▲4 | 4.22 ▲0.04 | 92.25 ▼2.27 | 41.15 ▼0.99 |
Simple Open Graphs /wp-admin/tools.php?page=simple-open-graphs | 785 | 2.04 | 25.07 | 24.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/simple-open-graphs/metabox-fields.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/simple-open-graphs/metabox-fields.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-open-graphs/simple-open-graphs.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/simple-open-graphs/graphs-settings.php:7
- > PHP Notice
Trying to get property 'post_type' of non-object in wp-content/plugins/simple-open-graphs/metabox-fields.php on line 4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: meta, facebook, open graph, fb meta, rich snippets
simple-open-graphs/simple-open-graphs.php Passed 13 tests
The primary PHP file in "Simple Open Graphs" version 1.0 is used by WordPress to initiate all plugin functionality
44 characters long description:
Easily add open graph meta tags in your site
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
Good job! No executable or dangerous file extensions detected247 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 31 | 20 | 230 |
JavaScript | 1 | 3 | 2 | 17 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 3.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin