Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wp-clone-template/main.php+10
define(): Declaration of case-insensitive constants is deprecated
Server metrics [RAM: ▼1.84MB] [CPU: ▼189.17ms] Passed 4 tests
Analyzing server-side resources used by Export Themes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.79 ▼1.04 | 5.05 ▼23.40 |
Dashboard /wp-admin | 1.81 ▼1.25 | 6.33 ▼40.28 |
Posts /wp-admin/edit.php | 1.81 ▼1.30 | 5.25 ▼38.65 |
Add New Post /wp-admin/post-new.php | 1.81 ▼3.62 | 5.41 ▼648.89 |
Media Library /wp-admin/upload.php | 1.81 ▼1.19 | 6.09 ▼28.84 |
Export /wp-admin/themes.php?page=clone_template | 1.81 | 4.71 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Export Themes
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 16.01 ▼0.07 | 10.56 ▼1.10 | 50.30 ▲1.40 |
Dashboard /wp-admin | 2,975 ▲38 | 5.93 ▼0.09 | 146.07 ▼2.73 | 110.79 ▲0.22 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.01 | 65.05 ▼1.10 | 87.19 ▼7.96 |
Add New Post /wp-admin/post-new.php | 1,675 ▼8 | 18.82 ▲0.03 | 388.72 ▼18.54 | 104.38 ▼3.87 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.04 ▲0.00 | 167.15 ▲17.26 | 113.81 ▼7.14 |
Export /wp-admin/themes.php?page=clone_template | 1,057 | 2.09 | 55.70 | 76.00 |
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
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/wp-clone-template/main.php+10
define(): Declaration of case-insensitive constants is deprecated
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/themes.php?page=clone_template
- > Deprecated in wp-content/plugins/wp-clone-template/main.php+10
define(): Declaration of case-insensitive constants is deprecated
- > GET request to /wp-admin/themes.php?page=clone_template
- > Notice in wp-content/plugins/wp-clone-template/main.php+107
Undefined index: wpct_buffer
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wpct_get_templates_options() in wp-content/plugins/wp-clone-template/views/export.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-clone-template/main.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 ("Export" option in the apparience menu.), #2 (Wp-clone-template running.), #3 (Just another screenshot.)
wp-clone-template/main.php 92% from 13 tests
"Export Themes" version 2.12's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-clone-template.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected3,064 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 930 | 1,837 | 3,064 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 553.00 |
▷ Minimum class complexity | 553.00 |
▷ Maximum class complexity | 553.00 |
Average method complexity | 12.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 50 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 63 | |
▷ Global constants | 63 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.18MB with 0.10MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 8.74KB | 4.01KB | ▼ 54.11% |
screenshot-3.png | 81.45KB | 32.22KB | ▼ 60.44% |
screenshot-1.png | 13.23KB | 5.75KB | ▼ 56.50% |
thumb.png | 81.45KB | 32.22KB | ▼ 60.44% |