Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼0.08ms] Passed 4 tests
An overview of server-side resources used by Duplicate Theme
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 43.35 ▲0.38 |
Dashboard /wp-admin | 3.33 ▲0.03 | 54.39 ▲3.49 |
Posts /wp-admin/edit.php | 3.39 ▲0.02 | 57.65 ▲2.26 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.02 | 91.57 ▼6.46 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 45.45 ▲6.17 |
Duplicate Theme /wp-admin/themes.php?page=duplicatetheme | 3.24 | 35.83 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Duplicate Theme
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.16 ▼0.48 | 1.90 ▲0.24 | 44.44 ▼1.01 |
Dashboard /wp-admin | 2,199 ▲22 | 5.56 ▼0.05 | 91.79 ▼3.02 | 39.27 ▼2.35 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 2.01 ▼0.02 | 39.96 ▼1.79 | 37.49 ▼1.69 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.47 ▲0.68 | 647.91 ▼59.73 | 54.00 ▼3.37 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.19 ▼0.03 | 112.61 ▼3.75 | 43.14 ▼14.73 |
Duplicate Theme /wp-admin/themes.php?page=duplicatetheme | 882 | 1.70 | 28.43 | 30.59 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 24 tag instead of maximum 10
- Screenshots: Please add images for these screenshots: #1 (Appearance -> Duplicate Theme), #2 (Network -> Themes -> Duplicate Theme)
duplicate-theme/duplicate-theme.php Passed 13 tests
Analyzing the main PHP file in "Duplicate Theme" version 0.1.6
83 characters long description:
Choose an existing theme, duplicate it or create a child while giving it a new name
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin154 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 62 | 32 | 154 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 5.59KB | 5.51KB | ▼ 1.52% |
screenshot-2.png | 7.39KB | 7.27KB | ▼ 1.73% |