Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼143.20ms] Passed 4 tests
This is a short check of server-side resources used by Theme Importer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 44.29 ▲15.81 |
Dashboard /wp-admin | 3.09 ▲0.03 | 56.36 ▼4.93 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 56.65 ▲0.81 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 97.71 ▼571.20 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 39.65 ▲2.53 |
Importer /wp-admin/themes.php?page=theme-importer/theme-importer.php | 2.98 | 34.19 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Theme Importer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.83 ▲0.26 | 11.16 ▼0.65 | 49.87 ▼8.20 |
Dashboard /wp-admin | 2,972 ▲41 | 5.91 ▼0.04 | 169.40 ▼13.50 | 123.16 ▲0.96 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▼0.01 | 78.10 ▲3.91 | 100.39 ▲9.63 |
Add New Post /wp-admin/post-new.php | 1,618 ▼65 | 21.43 ▲3.03 | 343.46 ▼60.25 | 120.65 ▲3.30 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.02 ▼0.01 | 165.09 ▼13.95 | 129.66 ▲1.13 |
Importer /wp-admin/themes.php?page=theme-importer/theme-importer.php | 1,095 | 2.09 | 60.76 | 92.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/themes.php?page=theme-importer/theme-importer.php
- > Notice in wp-content/plugins/theme-importer/theme-importer.php+125
Undefined index: id
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-importer/theme-importer.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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 to be fixed:
- Screenshots: Screenshot #1 (Visit http://www.stevs.net/plugins/theme-importer/) image missing
- Donate link: Please fix this invalid url: ""
theme-importer/theme-importer.php Passed 13 tests
The main PHP script in "Theme Importer" version 1.0 is automatically included on every request by WordPress
61 characters long description:
Install themes from remote locations into your themes folder.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected157 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 7 | 13 | 157 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin