Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼257.22ms] Passed 4 tests
Server-side resources used by WP Theme Exporter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.97 ▲0.25 | 35.37 ▲13.74 |
Dashboard /wp-admin | 3.20 ▲0.15 | 49.10 ▲2.29 |
Posts /wp-admin/edit.php | 3.31 ▲0.20 | 44.98 ▲0.56 |
Add New Post /wp-admin/post-new.php | 5.56 ▲0.13 | 93.78 ▼1,030.67 |
Media Library /wp-admin/upload.php | 3.14 ▲0.14 | 34.69 ▼1.06 |
WP Theme Exporter /wp-admin/tools.php?page=wp-theme-exporter | 3.21 | 34.48 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Theme Exporter
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,678 ▲97 | 15.85 ▲0.29 | 9.27 ▼1.20 | 42.38 ▼10.49 |
Dashboard /wp-admin | 2,932 ▲82 | 5.94 ▲0.15 | 138.45 ▲3.52 | 97.35 ▼5.30 |
Posts /wp-admin/edit.php | 2,711 ▲8 | 2.69 ▲0.01 | 71.51 ▲1.24 | 92.36 ▲4.20 |
Add New Post /wp-admin/post-new.php | 1,659 ▼0 | 18.39 ▼0.47 | 357.46 ▼21.45 | 111.87 ▲0.10 |
Media Library /wp-admin/upload.php | 1,777 ▲5 | 4.99 ▼0.01 | 165.03 ▼0.06 | 119.58 ▼5.15 |
WP Theme Exporter /wp-admin/tools.php?page=wp-theme-exporter | 1,258 | 2.59 | 69.26 | 90.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wp-theme-exporter/templates/plugin-page.php:8
- > PHP Fatal error
Trait 'WPThemeExporter\\Field\\ControlVars' not found in wp-content/plugins/wp-theme-exporter/includes/Field/Control.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-theme-exporter/wp-theme-exporter.php:21
- > PHP Fatal error
Trait 'WPThemeExporter\\Field\\ControlVars' not found in wp-content/plugins/wp-theme-exporter/includes/Admin/Field.php on line 16
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Donate link: Please fix this invalid URI: ""
wp-theme-exporter/wp-theme-exporter.php Passed 13 tests
The main PHP script in "WP Theme Exporter" version 1.2 is automatically included on every request by WordPress
77 characters long description:
WP Theme Exporter is a amazing tool helps you export theme and plugin easily.
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
Good job! No executable or dangerous file extensions detected6,646 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 530 | 900 | 2,621 |
CSS | 7 | 142 | 95 | 1,855 |
Sass | 4 | 94 | 0 | 1,157 |
PHP | 16 | 323 | 385 | 1,012 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 18.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 4.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 3 | 5.45% |
▷ Public methods | 46 | 83.64% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 16.36% |
Functions | 8 | |
▷ Named functions | 3 | 37.50% |
▷ Anonymous functions | 5 | 62.50% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin