Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼3.27ms] Passed 4 tests
This is a short check of server-side resources used by Flawless Themes Demo Importer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 44.37 ▲0.72 |
Dashboard /wp-admin | 3.40 ▲0.10 | 55.77 ▼2.31 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 49.34 ▼0.59 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.11 | 87.81 ▼10.90 |
Media Library /wp-admin/upload.php | 3.33 ▲0.09 | 38.24 ▲2.23 |
Server storage [IO: ▲12.37MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 84 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Flawless Themes Demo Importer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,904 ▲143 | 13.65 ▼0.90 | 8.93 ▲7.16 | 44.85 ▼3.40 |
Dashboard /wp-admin | 2,199 ▲22 | 5.49 ▼0.09 | 84.58 ▼16.81 | 40.30 ▼3.33 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 2.02 ▲0.00 | 35.66 ▼6.72 | 35.80 ▲1.89 |
Add New Post /wp-admin/post-new.php | 1,546 ▲20 | 22.93 ▼0.13 | 654.46 ▼8.45 | 54.05 ▲3.02 |
Media Library /wp-admin/upload.php | 1,410 ▲7 | 4.20 ▲0.06 | 100.36 ▲7.64 | 43.78 ▲2.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/flawless-themes-demo-importer/public/partials/flawless-demo-importer-public-display.php
- > /wp-content/plugins/flawless-themes-demo-importer/admin/partials/flawless-demo-importer-admin-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/flawless-themes-demo-importer/includes/class-flawless-demo-importer.php:372
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Donate link: Invalid url: "flawlessthemes.com"
flawless-themes-demo-importer/flawless-demo-importer.php 85% from 13 tests
This is the main PHP file of "Flawless Themes Demo Importer" version 1.0.18, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("flawless-themes-demo-importer.php" instead of "flawless-demo-importer.php")
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 plugin117,802 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 15 | 2,642 | 1,612 | 117,421 |
PHP | 12 | 131 | 537 | 337 |
CSS | 2 | 2 | 8 | 38 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 compressed PNG files occupy 4.27MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/theme-bundle.png | 122.71KB | 33.96KB | ▼ 72.33% |
public/img/ft-directory-free.png | 324.82KB | 332.24KB | 0.00% |
public/img/jobstack.png | 270.62KB | 275.26KB | 0.00% |
public/img/lms-academic-free.png | 79.31KB | 79.65KB | 0.00% |
public/img/coursemax.png | 285.61KB | 289.87KB | 0.00% |