Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.39ms] Passed 4 tests
A check of server-side resources used by Customizer Export/Import
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.92 ▼6.31 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.60 ▼12.51 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.16 ▼1.48 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.77 ▼11.89 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.96 ▼2.84 |
Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Customizer Export/Import
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.37 ▼0.04 | 1.77 ▼0.01 | 40.18 ▼2.61 |
Dashboard /wp-admin | 2,198 ▲21 | 5.64 ▲0.02 | 92.57 ▼3.61 | 44.42 ▼0.08 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.01 ▲0.02 | 40.92 ▲4.51 | 35.99 ▲0.04 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.41 ▲5.98 | 608.57 ▼21.93 | 58.73 ▲4.06 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.25 ▲0.01 | 101.86 ▼2.61 | 47.29 ▲2.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/customizer-export-import/classes/class-cei-control.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/customizer-export-import/includes/control.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/customizer-export-import/customizer-export-import.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/customizer-export-import/classes/class-cei-option.php:9
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: import, settings, customizer settings, export, theme settings...
customizer-export-import/customizer-export-import.php Passed 13 tests
Analyzing the main PHP file in "Customizer Export/Import" version 0.9.6
74 characters long description:
Adds settings export and import functionality to the WordPress customizer.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin372 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 84 | 175 | 292 |
JavaScript | 1 | 7 | 0 | 35 |
CSS | 1 | 0 | 0 | 25 |
Markdown | 1 | 13 | 0 | 20 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 14.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 4.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 13 | |
▷ Static methods | 11 | 84.62% |
▷ Public methods | 7 | 53.85% |
▷ Protected methods | 1 | 7.69% |
▷ Private methods | 5 | 38.46% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin