Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/simple-open-graph/opengraph.php+149
The each() function is deprecated. This message will be suppressed on further calls
Server metrics [RAM: ▼2.18MB] [CPU: ▼55.95ms] Passed 4 tests
Server-side resources used by Simple Open Graph
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.64 | 4.73 ▼40.42 |
Dashboard /wp-admin | 2.11 ▼1.46 | 6.15 ▼46.61 |
Posts /wp-admin/edit.php | 2.11 ▼1.57 | 5.54 ▼47.24 |
Add New Post /wp-admin/post-new.php | 2.11 ▼4.04 | 6.28 ▼89.51 |
Media Library /wp-admin/upload.php | 2.11 ▼1.38 | 5.32 ▼32.86 |
Open Graph /wp-admin/options-general.php?page=simpleopengraph | 2.11 | 6.42 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Open Graph
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲42 | 14.34 ▼0.01 | 1.97 ▼0.02 | 45.60 ▲1.07 |
Dashboard /wp-admin | 2,202 ▲25 | 5.65 ▼0.04 | 87.25 ▼17.80 | 39.47 ▼3.98 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.04 ▲0.04 | 35.26 ▼1.55 | 32.94 ▼4.65 |
Add New Post /wp-admin/post-new.php | 1,557 ▲12 | 18.30 ▼5.03 | 632.44 ▼59.78 | 61.93 ▲10.38 |
Media Library /wp-admin/upload.php | 1,404 ▲10 | 4.24 ▲0.01 | 98.33 ▼2.97 | 42.05 ▼1.57 |
Open Graph /wp-admin/options-general.php?page=simpleopengraph | 1,035 | 3.02 | 44.22 | 28.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/simple-open-graph/opengraph.php+149
The each() function is deprecated. This message will be suppressed on further calls
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=simpleopengraph
- > Deprecated in wp-content/plugins/simple-open-graph/opengraph.php+149
The each() function is deprecated. This message will be suppressed on further calls
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=simpleopengraph
- > Notice in wp-content/plugins/simple-open-graph/simpleopengraph_options.php+81
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-open-graph/simpleopengraph_options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-open-graph/simpleopengraph_options.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== simple-open-graph ===
)
simple-open-graph/opengraph.php 92% from 13 tests
The primary PHP file in "Simple Open Graph" version 2.4 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-open-graph.php" instead of "opengraph.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected222 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 18 | 43 | 199 |
JavaScript | 1 | 13 | 4 | 23 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
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 | 20 | |
▷ Named functions | 20 | 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
There were not PNG files found in your plugin