Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- This plugin did not install gracefully
- > Warning in wp-content/plugins/common-options-for-vihvlcc-based-themes/common-options-for-vihvlcc-based-themes.php+16
require_once(vihv/autoload.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼0.02MB] [CPU: ▼306.18ms] Passed 4 tests
An overview of server-side resources used by Common options for VihvLCC based themes
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 54.08 ▼3.86 |
Dashboard /wp-admin | 3.41 ▲0.00 | 36.28 ▲1.23 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 41.00 ▼34.28 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 92.81 ▼1,182.83 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 26.33 ▼3.73 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 129 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Common options for VihvLCC based themes
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲41 | 15.31 ▼0.33 | 8.00 ▲1.75 | 2.65 ▲0.11 |
Dashboard /wp-admin | 2,895 ▲34 | 6.13 ▼0.03 | 125.15 ▼11.43 | 163.46 ▼6.50 |
Posts /wp-admin/edit.php | 2,691 ▲6 | 3.23 ▼0.01 | 64.19 ▼1.69 | 150.33 ▼3.31 |
Add New Post /wp-admin/post-new.php | 1,711 ▼0 | 21.50 ▲0.34 | 453.32 ▼1.75 | 163.22 ▼2.87 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.47 ▼0.03 | 186.05 ▲35.03 | 194.35 ▼58.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
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 | 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
- 71× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
require_once(vihv/model/filter/DefaultDocFilter.php): failed to open stream: No such file or directory in wp-content/plugins/common-options-for-vihvlcc-based-themes/vendor/pear-pear.vihv.org/vihv/vihv/model/XmlDocModel.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'vihv/misc/Locator.php' (include_path='.:/usr/share/php') in wp-content/plugins/common-options-for-vihvlcc-based-themes/vendor/pear-pear.vihv.org/vihv/vihv/autoload.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'vihv\\Exception' not found in wp-content/plugins/common-options-for-vihvlcc-based-themes/vendor/pear-pear.vihv.org/vihv/vihv/interface/ILogin.php:9
- > PHP Warning
require_once(vihv/exception/Exception.php): failed to open stream: No such file or directory in wp-content/plugins/common-options-for-vihvlcc-based-themes/vendor/pear-pear.vihv.org/vihv/vihv/interface/IControl.php on line 4
- > PHP Warning
require_once(vihv/model/filter/Where.php): failed to open stream: No such file or directory in wp-content/plugins/common-options-for-vihvlcc-based-themes/vendor/pear-pear.vihv.org/vihv/vihv/model/filter/DefaultDocFilter.php on line 4
- > PHP Warning
require_once(vihv/interface/ICmsPost.php): failed to open stream: No such file or directory in wp-content/plugins/common-options-for-vihvlcc-based-themes/vendor/pear-pear.vihv.org/vihv/vihv/model/CMS/Wp/WpPost.php on line 4
- > PHP Warning
require_once(vihv/interface/IAcl.php): failed to open stream: No such file or directory in wp-content/plugins/common-options-for-vihvlcc-based-themes/vendor/pear-pear.vihv.org/vihv/vihv/event/EventManager.php on line 4
- > PHP Warning
require_once(vihv/interface/ITheme.php): failed to open stream: No such file or directory in wp-content/plugins/common-options-for-vihvlcc-based-themes/vendor/pear-pear.vihv.org/vihv/vihv/theme/XmlTheme.php on line 5
- > PHP Fatal error
require_once(): Failed opening required 'vihv/event/AuthorizationManager.php' (include_path='.:/usr/share/php') in wp-content/plugins/common-options-for-vihvlcc-based-themes/vendor/pear-pear.vihv.org/vihv/vihv/acl/XmlAcl.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'vihv\\Control' not found in wp-content/plugins/common-options-for-vihvlcc-based-themes/vendor/pear-pear.vihv.org/vihv/vihv/control/CMS/Wp/WpWidgetControl.php:7
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Frontend with enabled debugger), #2 (Options page)
- Donate link: Invalid URI ("")
common-options-for-vihvlcc-based-themes/common-options-for-vihvlcc-based-themes.php 92% from 13 tests
The main file in "Common options for VihvLCC based themes" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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 plugin4,133 lines of code in 112 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 91 | 729 | 1,108 | 3,102 |
JavaScript | 5 | 31 | 31 | 511 |
XSLT | 9 | 11 | 58 | 263 |
CSS | 3 | 21 | 5 | 214 |
JSON | 3 | 0 | 0 | 40 |
XML | 1 | 0 | 0 | 3 |
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.22 |
Average class complexity | 3.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 1.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 20 | |
Traits | 0 | |
Classes | 84 | |
▷ Abstract classes | 2 | 2.38% |
▷ Concrete classes | 82 | 97.62% |
▷ Final classes | 0 | 0.00% |
Methods | 418 | |
▷ Static methods | 44 | 10.53% |
▷ Public methods | 409 | 97.85% |
▷ Protected methods | 4 | 0.96% |
▷ Private methods | 5 | 1.20% |
Functions | 5 | |
▷ Named functions | 1 | 20.00% |
▷ Anonymous functions | 4 | 80.00% |
Constants | 12 | |
▷ Global constants | 2 | 16.67% |
▷ Class constants | 10 | 83.33% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.15MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/pear-pear.vihv.org/vihv/vihv/img/opacity09white.png | 0.17KB | 0.12KB | ▼ 30.34% |
vendor/pear-pear.vihv.org/vihv/vihv/img/opacity07white.png | 0.17KB | 0.12KB | ▼ 30.34% |
vendor/pear-pear.vihv.org/vihv/vihv/img/lang/en.png | 0.63KB | 0.50KB | ▼ 21.17% |
screenshot-2.png | 35.98KB | 13.76KB | ▼ 61.76% |
vendor/pear-pear.vihv.org/vihv/vihv/img/lang/ru.png | 0.17KB | 0.14KB | ▼ 17.71% |