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
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼2.26ms] Passed 4 tests
This is a short check of server-side resources used by Opes WP Social Tabs
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 44.83 ▲4.41 |
Dashboard /wp-admin | 3.44 ▲0.14 | 54.26 ▲1.11 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 48.07 ▼1.60 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 94.87 ▼1.95 |
Media Library /wp-admin/upload.php | 3.36 ▲0.14 | 37.90 ▼6.60 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
owpst_jdvu_options_social_links |
db_upgraded |
can_compress_scripts |
owpst_jdvu_options_main_settings |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Opes WP Social Tabs
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲90 | 14.73 ▲0.73 | 2.03 ▲0.36 | 43.63 ▼2.51 |
Dashboard /wp-admin | 2,217 ▲17 | 4.84 ▼0.97 | 103.60 ▼3.49 | 75.59 ▲30.96 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.98 ▼0.03 | 39.30 ▲1.66 | 37.40 ▲0.79 |
Add New Post /wp-admin/post-new.php | 1,548 ▲3 | 23.10 ▼0.09 | 755.88 ▲77.20 | 68.47 ▲12.32 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.14 ▼0.11 | 102.03 ▲2.92 | 72.43 ▲26.29 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-posts
- owpst_jdvu_options_main_settings
- owpst_jdvu_options_social_links
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required '__OWPST_jdvu__THIS_PLUGIN__DIR_inc/common/common.class.php' (include_path='.:/usr/share/php') in wp-content/plugins/opes-wp-social-tabs/inc/main.class.php on line 3
- > PHP Warning
Use of undefined constant __OWPST_jdvu__THIS_PLUGIN__DIR_ - assumed '__OWPST_jdvu__THIS_PLUGIN__DIR_' (this will throw an Error in a future version of PHP) in wp-content/plugins/opes-wp-social-tabs/inc/main.class.php on line 3
- > PHP Notice
Undefined variable: params in wp-content/plugins/opes-wp-social-tabs/inc/front/controller/1-frontSocialTabs-ToLoad.php on line 117
- > PHP Notice
Trying to get property 'plugin_short_slug' of non-object in wp-content/plugins/opes-wp-social-tabs/inc/front/controller/1-frontSocialTabs-ToLoad.php on line 17
- > PHP Warning
require_once(__OWPST_jdvu__THIS_PLUGIN__DIR_inc/common/common.class.php): failed to open stream: No such file or directory in wp-content/plugins/opes-wp-social-tabs/inc/main.class.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/opes-wp-social-tabs/inc/common/controller/1-initData-ToLoad.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/opes-wp-social-tabs/opes-wp-social-tabs.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/opes-wp-social-tabs/inc/front/controller/1-frontSocialTabs-ToLoad.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/opes-wp-social-tabs/inc/admin/controller/4-adminOptionsPanel-ToLoad.php:27
- > 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 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
opes-wp-social-tabs/opes-wp-social-tabs.php 92% from 13 tests
The main PHP file in "Opes WP Social Tabs" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin834 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 210 | 312 | 791 |
CSS | 1 | 5 | 0 | 22 |
JavaScript | 1 | 6 | 0 | 21 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 23.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 6.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 14 | 38.89% |
▷ Public methods | 25 | 69.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 30.56% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 17 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/admin/assets/images/icon-20-red.png | 0.87KB | 0.93KB | 0.00% |
inc/front/assets/images/fb-tab.png | 9.74KB | 4.51KB | ▼ 53.65% |
inc/front/assets/images/yt-tab.png | 7.28KB | 3.45KB | ▼ 52.58% |
inc/admin/assets/images/icon-20-pink.png | 0.96KB | 1.00KB | 0.00% |
inc/admin/assets/images/checked_checkbox-40.png | 0.86KB | 0.86KB | 0.11% |