Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.85ms] Passed 4 tests
Analyzing server-side resources used by Elegant Blog Themes Demo Importer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.66 ▼8.07 |
Dashboard /wp-admin | 3.32 ▲0.01 | 50.49 ▼4.08 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 52.74 ▼0.50 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 87.34 ▼18.75 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.85 ▲3.41 |
Server storage [IO: ▲8.62MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Elegant Blog Themes Demo Importer: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,879 ▲118 | 13.47 ▼1.12 | 7.60 ▲5.89 | 42.51 ▼2.82 |
Dashboard /wp-admin | 2,202 ▲25 | 5.55 ▼0.03 | 85.85 ▼17.46 | 40.45 ▼5.26 |
Posts /wp-admin/edit.php | 2,107 ▲10 | 2.00 ▲0.04 | 40.60 ▲4.12 | 34.58 ▼1.29 |
Add New Post /wp-admin/post-new.php | 1,536 ▲1 | 23.27 ▲4.94 | 658.57 ▲4.79 | 53.41 ▼12.20 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.15 ▼0.05 | 100.22 ▼4.61 | 42.39 ▲1.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/elegant-themes-demo-importer/admin/partials/elegant-demo-importer-admin-display.php
- > /wp-content/plugins/elegant-themes-demo-importer/public/partials/elegant-demo-importer-public-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/elegant-themes-demo-importer/includes/class-elegant-demo-importer.php:311
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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: Invalid URI found ("")
elegant-themes-demo-importer/elegant-demo-importer.php 85% from 13 tests
The main PHP script in "Elegant Blog Themes Demo Importer" version 1.0.7 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("elegant-themes-demo-importer.php" instead of "elegant-demo-importer.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin97,326 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 8 | 1,198 | 344 | 97,046 |
PHP | 12 | 133 | 537 | 274 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 18 | 78.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 21.74% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 compressed PNG files occupy 2.17MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/messina.png | 194.60KB | 196.75KB | 0.00% |
public/img/food.png | 363.79KB | 380.02KB | 0.00% |
public/img/zion.png | 376.22KB | 384.03KB | 0.00% |
public/img/vinyl.png | 292.06KB | 298.29KB | 0.00% |
public/img/travel.png | 211.13KB | 214.66KB | 0.00% |