Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼6.28ms] Passed 4 tests
A check of server-side resources used by All in one demo Export/Import
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.12 | 41.76 ▼1.02 |
Dashboard /wp-admin | 3.47 ▲0.08 | 49.66 ▼17.30 |
Posts /wp-admin/edit.php | 3.58 ▲0.18 | 52.93 ▲0.64 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.12 | 90.02 ▼7.42 |
Media Library /wp-admin/upload.php | 3.39 ▲0.12 | 41.84 ▲3.23 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for All in one demo Export/Import
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.36 ▲0.01 | 1.74 ▲0.03 | 45.57 ▲1.08 |
Dashboard /wp-admin | 2,192 ▲12 | 5.57 ▼0.10 | 91.57 ▼6.80 | 41.31 ▼1.07 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.03 | 40.68 ▲6.52 | 35.85 ▼2.29 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.21 ▲0.21 | 700.24 ▼11.18 | 58.34 ▲7.03 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▲0.01 | 96.38 ▼14.61 | 40.54 ▼2.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/all-in-one-demo-importexport/all-in-one-demo-import-export.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/all-in-one-demo-importexport/classes/class-aiodie-option.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/all-in-one-demo-importexport/classes/class-aiodie-control.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/all-in-one-demo-importexport/includes/control.php:34
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The export/import customizer section.), #2 (Process Import Export by selecting details options)
- Tags: There are too many tags (13 tag instead of maximum 10)
all-in-one-demo-importexport/all-in-one-demo-import-export.php 77% from 13 tests
This is the main PHP file of "All in one demo Export/Import" version 0.1, 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:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("all-in-one-demo-importexport.php" instead of "all-in-one-demo-import-export.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 157 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,197 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 176 | 228 | 1,097 |
JavaScript | 1 | 18 | 4 | 66 |
CSS | 1 | 0 | 0 | 25 |
Markdown | 1 | 9 | 0 | 9 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 43.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 128.00 |
Average method complexity | 11.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 3 | 100.00% |
Methods | 12 | |
▷ Static methods | 10 | 83.33% |
▷ Public methods | 6 | 50.00% |
▷ Protected methods | 1 | 8.33% |
▷ Private methods | 5 | 41.67% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.06MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 33.95KB | 33.37KB | ▼ 1.69% |
screenshot-2.png | 27.25KB | 26.20KB | ▼ 3.84% |