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.11MB] [CPU: ▼9.40ms] Passed 4 tests
A check of server-side resources used by TBThemes Theme Import
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 40.31 ▼1.65 |
Dashboard /wp-admin | 3.43 ▲0.08 | 45.85 ▼18.86 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 50.97 ▼1.48 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 86.50 ▼15.60 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 35.96 ▲3.01 |
Demo Import /wp-admin/themes.php?page=advanced-import | 3.32 | 33.83 |
Server storage [IO: ▲20.95MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 203 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
__tbthemes_demo_import_do_redirect |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
TBThemes Theme Import: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲79 | 14.35 ▼0.03 | 1.56 ▼0.13 | 40.51 ▼5.40 |
Dashboard /wp-admin | 2,234 ▲57 | 5.64 ▲0.12 | 94.23 ▲3.69 | 43.49 ▲3.65 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 1.99 ▲0.04 | 39.90 ▼2.45 | 39.18 ▲3.69 |
Add New Post /wp-admin/post-new.php | 1,551 ▲25 | 23.21 ▼0.11 | 685.85 ▲30.73 | 56.70 ▼2.17 |
Media Library /wp-admin/upload.php | 1,439 ▲39 | 4.29 ▲0.03 | 98.13 ▲2.70 | 43.74 ▲2.34 |
Demo Import /wp-admin/themes.php?page=advanced-import | 843 | 2.03 | 27.78 | 30.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- __tbthemes_demo_import_do_redirect
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/tbthemes-demo-import/public/partials/tbthemes-demo-import-public-display.php
- 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/tbthemes-demo-import/admin/templates/chic-lifestyle.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/tbthemes-demo-import/admin/templates/travel-agency-booking.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/tbthemes-demo-import/admin/templates/lifestyle-magazine.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/tbthemes-demo-import/admin/templates/relax-spa.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/tbthemes-demo-import/admin/templates/travel-tour.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/tbthemes-demo-import/admin/templates/bootstrap-fitness.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/tbthemes-demo-import/admin/templates/magazine-newspaper.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/tbthemes-demo-import/admin/templates/bootstrap-blog.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/tbthemes-demo-import/admin/templates/bootstrap-coach.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/tbthemes-demo-import/admin/templates/bootstrap-photography.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: one click theme import
tbthemes-demo-import/tbthemes-demo-import.php Passed 13 tests
Analyzing the main PHP file in "TBThemes Theme Import" version 1.4.0
99 characters long description:
This is a theme import plugin. Our plugin will help you import the theme content with just a click.
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
Good job! No executable or dangerous file extensions detected1,507 lines of code in 134 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 272 | 556 | 1,316 |
JSON | 109 | 0 | 0 | 109 |
CSS | 2 | 5 | 4 | 56 |
JavaScript | 2 | 7 | 32 | 26 |
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.30 |
Average class complexity | 6.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 5 | 15.62% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 0% from 2 tests
Image compression 0% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 2.72MB with 2.72MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) includes/demo-data/bootstrap-fitness/free/screenshot.png | 558.80KB | 0.00KB | ▼ 100.00% |
(invalid) includes/demo-data/travel-agency-booking/pro/screenshot.png | 66.80KB | 0.00KB | ▼ 100.00% |
(invalid) includes/demo-data/travel-agency-booking/free/screenshot.png | 347.89KB | 0.00KB | ▼ 100.00% |
(invalid) includes/demo-data/bootstrap-coach/pro/screenshot.png | 477.02KB | 0.00KB | ▼ 100.00% |
(invalid) includes/demo-data/relax-spa/free/screenshot.png | 120.80KB | 0.00KB | ▼ 100.00% |