Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.29ms] Passed 4 tests
A check of server-side resources used by OG — Better Share on Social Media
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.22 ▼3.37 |
Dashboard /wp-admin | 3.31 ▼0.04 | 48.58 ▼15.49 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.19 ▼0.35 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.76 ▼9.96 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.33 ▲4.70 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by OG — Better Share on Social Media
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.16 ▼0.24 | 1.78 ▲0.03 | 41.05 ▼2.62 |
Dashboard /wp-admin | 2,198 ▲24 | 5.65 ▲0.12 | 96.25 ▼8.06 | 42.30 ▼0.23 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▲0.01 | 39.75 ▼0.08 | 34.43 ▼1.21 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 23.31 ▼2.06 | 669.90 ▲11.42 | 53.76 ▼8.64 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.21 ▼0.07 | 98.10 ▲1.30 | 41.00 ▼1.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'iWorks_OpenGraph_Integrations' not found in wp-content/plugins/og/includes/iworks/opengraph/integrations/class-iworks-opengraph-integrations-sitepress-multilingual-cms.php:8
- > PHP Fatal error
Uncaught Error: Class 'iWorks_OpenGraph_Integrations' not found in wp-content/plugins/og/includes/iworks/opengraph/integrations/class-iworks-opengraph-integrations-contextual-related-posts.php:8
- > PHP Fatal error
Uncaught Error: Class 'iWorks_OpenGraph_Integrations' not found in wp-content/plugins/og/includes/iworks/opengraph/integrations/class-iworks-opengraph-integrations-reading-time-wp.php:8
- > PHP Fatal error
Uncaught Error: Class 'iWorks_OpenGraph_Integrations' not found in wp-content/plugins/og/includes/iworks/opengraph/integrations/class-iworks-opengraph-integrations-post-expirator.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/og/includes/iworks/class-iworks-opengraph.php:49
- > PHP Fatal error
Uncaught Error: Class 'iWorks_OpenGraph_Integrations' not found in wp-content/plugins/og/includes/iworks/opengraph/integrations/class-iworks-opengraph-integrations-related-posts-for-wp.php:8
- > PHP Fatal error
Uncaught Error: Class 'iWorks_OpenGraph_Integrations' not found in wp-content/plugins/og/includes/iworks/opengraph/integrations/class-iworks-opengraph-integrations-yarpp.php:8
- > PHP Fatal error
Uncaught Error: Class 'iWorks_OpenGraph_Integrations' not found in wp-content/plugins/og/includes/iworks/opengraph/integrations/class-iworks-opengraph-integrations-categories-images.php:8
- > PHP Fatal error
Uncaught Error: Class 'iWorks_OpenGraph_Integrations' not found in wp-content/plugins/og/includes/iworks/opengraph/integrations/class-iworks-opengraph-integrations-twitter.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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:
- Tags: You are using too many tags: 12 tag instead of maximum 10
og/og.php 92% from 13 tests
This is the main PHP file of "OG — Better Share on Social Media" version 3.2.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 164 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin2,009 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 103 | 912 | 1,745 |
Sass | 1 | 8 | 0 | 138 |
CSS | 1 | 5 | 1 | 101 |
JavaScript | 1 | 0 | 0 | 24 |
SVG | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 135)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 32.27 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 248.00 |
Average method complexity | 5.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 135.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 1 | 9.09% |
▷ Concrete classes | 10 | 90.91% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 1 | 1.41% |
▷ Public methods | 47 | 66.20% |
▷ Protected methods | 4 | 5.63% |
▷ Private methods | 20 | 28.17% |
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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 16.73KB | 9.05KB | ▼ 45.91% |