Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼9.03ms] Passed 4 tests
An overview of server-side resources used by Ogp Plus
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 55.35 ▲12.92 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.99 ▼7.97 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 51.78 ▼1.90 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 90.72 ▼23.79 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.73 ▼2.47 |
Ogp Plus /wp-admin/options-general.php?page=ogpplus | 3.23 | 42.25 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Ogp Plus: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲32 | 14.72 ▲0.37 | 2.80 ▲0.77 | 50.14 ▲2.83 |
Dashboard /wp-admin | 2,196 ▲19 | 5.50 ▼0.04 | 102.28 ▼0.63 | 44.02 ▼0.85 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.02 ▲0.04 | 41.85 ▼0.30 | 36.68 ▼4.00 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.02 ▲1.68 | 691.98 ▼26.64 | 53.39 ▼9.52 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.24 ▲0.05 | 105.39 ▼20.59 | 51.19 ▼3.19 |
Ogp Plus /wp-admin/options-general.php?page=ogpplus | 1,121 | 3.26 | 64.88 | 30.21 |
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 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ogp-plus/lib/class-ogpplus.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ogp-plus/lib/class-ogpplus.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ogp-plus/lib/class-ogpplusadmin.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: x, ogp, facebook
ogp-plus/ogpplus.php 85% from 13 tests
The main PHP file in "Ogp Plus" ver. 1.09 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("ogp-plus.php" instead of "ogpplus.php")
- Description: Make the plugin description longer than 10 characters (currently 9 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected382 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 61 | 130 | 331 |
JavaScript | 1 | 9 | 20 | 51 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 6.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 70.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 30.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected