Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.81ms] Passed 4 tests
This is a short check of server-side resources used by Ovic Importer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 35.00 ▼5.11 |
Dashboard /wp-admin | 3.42 ▲0.07 | 45.95 ▼17.49 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 50.12 ▲3.13 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 91.56 ▲1.00 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 33.81 ▼1.62 |
Ovic Import Demo /wp-admin/admin.php?page=ovic-import | 3.25 | 33.39 |
Ovic Plugins /wp-admin/admin.php?page=ovic-plugins | 3.24 | 31.65 |
Server storage [IO: ▲6.95MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Ovic Importer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲65 | 14.67 ▲0.28 | 1.46 ▼0.23 | 40.28 ▼3.96 |
Dashboard /wp-admin | 2,220 ▲39 | 5.65 ▼0.27 | 90.74 ▼12.15 | 69.90 ▲24.47 |
Posts /wp-admin/edit.php | 2,125 ▲22 | 2.10 ▲0.10 | 39.50 ▲5.80 | 37.04 ▲1.07 |
Add New Post /wp-admin/post-new.php | 1,559 ▲33 | 23.30 ▲0.28 | 591.12 ▼98.02 | 181.00 ▲113.23 |
Media Library /wp-admin/upload.php | 1,422 ▲25 | 4.19 ▲0.08 | 94.74 ▼16.47 | 73.19 ▲23.69 |
Ovic Import Demo /wp-admin/admin.php?page=ovic-import | 1,045 | 2.03 | 24.09 | 38.14 |
Ovic Plugins /wp-admin/admin.php?page=ovic-plugins | 817 | 2.00 | 23.89 | 24.20 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ovic-import-demo/includes/classes/importer.php
- > /wp-content/plugins/ovic-import-demo/includes/classes/revslider-export.php
- > /wp-content/plugins/ovic-import-demo/includes/classes/database.php
- > /wp-content/plugins/ovic-import-demo/includes/classes/image.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/ovic-import-demo/includes/vendor/class-wp-import.php:12
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2, #3 in ovic-import-demo/assets to your readme.txt
ovic-import-demo/addon.php 85% from 13 tests
The primary PHP file in "Ovic Importer" version 1.6.3 is used by WordPress to initiate all plugin functionality
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
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ovic-import-demo.php" instead of "addon.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin7,361 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 1,086 | 1,565 | 6,172 |
CSS | 2 | 83 | 3 | 691 |
JavaScript | 4 | 96 | 0 | 498 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 144)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 66.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 229.00 |
Average method complexity | 6.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 144.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 223 | |
▷ Static methods | 47 | 21.08% |
▷ Public methods | 216 | 96.86% |
▷ Protected methods | 5 | 2.24% |
▷ Private methods | 2 | 0.90% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 11 | |
▷ Global constants | 10 | 90.91% |
▷ Class constants | 1 | 9.09% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-menu.png | 1.11KB | 0.37KB | ▼ 66.43% |