Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼5.45ms] Passed 4 tests
This is a short check of server-side resources used by Oktium Face2
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 40.97 ▲0.44 |
Dashboard /wp-admin | 3.45 ▲0.14 | 42.63 ▼2.75 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 46.84 ▼4.70 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.22 | 86.74 ▼14.79 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 37.87 ▲3.64 |
Dashboard /wp-admin/plugins.php?page=meta-box | 3.40 | 32.97 |
Add New /wp-admin/post-new.php?post_type=face2buttons | 3.47 | 60.42 |
All Button /wp-admin/edit.php?post_type=face2buttons | 3.41 | 36.63 |
Oktium Face2 /wp-admin/options-general.php?page=face2 | 3.36 | 35.98 |
Server storage [IO: ▲0.94MB] [DB: ▲0.05MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 388 new files
Database: no new tables, 7 new options
New WordPress options |
---|
face2_option_face2Key |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Oktium Face2
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲124 | 13.19 ▼1.17 | 4.44 ▲2.66 | 41.88 ▼9.24 |
Dashboard /wp-admin | 2,262 ▲74 | 4.85 ▲0.02 | 110.10 ▼4.34 | 40.37 ▼3.43 |
Posts /wp-admin/edit.php | 2,122 ▲30 | 2.02 ▼0.03 | 40.16 ▼1.50 | 36.31 ▼2.96 |
Add New Post /wp-admin/post-new.php | 1,561 ▲33 | 23.32 ▲5.06 | 585.81 ▼11.38 | 49.42 ▲1.53 |
Media Library /wp-admin/upload.php | 1,424 ▲33 | 4.22 ▼0.08 | 97.51 ▼2.10 | 43.03 ▼1.37 |
Dashboard /wp-admin/plugins.php?page=meta-box | 1,758 | 9.00 | 277.67 | 73.27 |
Add New /wp-admin/post-new.php?post_type=face2buttons | 1,891 | 2.97 | 71.91 | 40.11 |
All Button /wp-admin/edit.php?post_type=face2buttons | 1,100 | 2.01 | 34.56 | 28.55 |
Oktium Face2 /wp-admin/options-general.php?page=face2 | 815 | 2.06 | 25.15 | 26.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- face2_option_face2Key
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/oktium-face2-widget/vendor/wpmetabox/meta-box/inc/templates/audio.php
- > /wp-content/plugins/oktium-face2-widget/vendor/wpmetabox/meta-box/inc/templates/media.php
- > /wp-content/plugins/oktium-face2-widget/vendor/wpmetabox/meta-box/inc/templates/video.php
- > /wp-content/plugins/oktium-face2-widget/vendor/wpmetabox/meta-box/inc/templates/image-advanced.php
- > /wp-content/plugins/oktium-face2-widget/vendor/wpmetabox/meta-box/inc/templates/upload.php
- 159× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Choice_Field' not found in wp-content/plugins/oktium-face2-widget/vendor/wpmetabox/meta-box/inc/fields/select.php:11
- > PHP Fatal error
Uncaught Error: Class 'Walker' not found in wp-content/plugins/oktium-face2-widget/vendor/wpmetabox/meta-box/inc/walkers/base.php:12
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/oktium-face2-widget/vendor/composer/installers/src/Composer/Installers/BonefishInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/oktium-face2-widget/vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/oktium-face2-widget/vendor/composer/installers/src/Composer/Installers/GravInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/oktium-face2-widget/vendor/composer/installers/src/Composer/Installers/SyliusInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/oktium-face2-widget/vendor/wpmetabox/meta-box/inc/fields/button.php:11
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/oktium-face2-widget/vendor/composer/installers/src/Composer/Installers/ZendInstaller.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/oktium-face2-widget/vendor/wpmetabox/meta-box/inc/about/sections/products.php:12
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/oktium-face2-widget/vendor/wpmetabox/meta-box/inc/fields/heading.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: widget, product, video, oktium button, call...
oktium-face2-widget/face2-widget.php 85% from 13 tests
The main PHP file in "Oktium Face2" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("oktium-face2-widget.php" instead of "face2-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin13,739 lines of code in 363 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 216 | 1,823 | 5,425 | 8,586 |
CSS | 41 | 152 | 129 | 2,443 |
JavaScript | 100 | 552 | 528 | 2,307 |
JSON | 2 | 0 | 0 | 287 |
YAML | 3 | 30 | 0 | 111 |
SVG | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 5.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 2.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 187 | |
▷ Abstract classes | 7 | 3.74% |
▷ Concrete classes | 180 | 96.26% |
▷ Final classes | 0 | 0.00% |
Methods | 586 | |
▷ Static methods | 303 | 51.71% |
▷ Public methods | 488 | 83.28% |
▷ Protected methods | 64 | 10.92% |
▷ Private methods | 34 | 5.80% |
Functions | 34 | |
▷ Named functions | 26 | 76.47% |
▷ Anonymous functions | 8 | 23.53% |
Constants | 9 | |
▷ Global constants | 7 | 77.78% |
▷ Class constants | 2 | 22.22% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
14 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/wpmetabox/meta-box/img/jqueryui/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/wpmetabox/meta-box/img/jqueryui/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
vendor/wpmetabox/meta-box/img/jqueryui/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
vendor/wpmetabox/meta-box/img/jqueryui/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
vendor/wpmetabox/meta-box/img/jqueryui/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |