Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.90ms] Passed 4 tests
Analyzing server-side resources used by EnvoThemes Demo Import
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 38.31 ▼2.37 |
Dashboard /wp-admin | 3.38 ▲0.07 | 48.97 ▲2.49 |
Posts /wp-admin/edit.php | 3.50 ▲0.13 | 46.33 ▼5.57 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 83.71 ▼14.14 |
Media Library /wp-admin/upload.php | 3.31 ▲0.07 | 36.04 ▲3.01 |
Server storage [IO: ▲0.96MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 45 new files
Database: no new tables, 7 new options
New WordPress options |
---|
envothemes-demo-import-version |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for EnvoThemes Demo Import
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.35 ▲0.06 | 1.66 ▼0.08 | 43.33 ▲3.07 |
Dashboard /wp-admin | 2,197 ▲26 | 5.62 ▲0.03 | 81.68 ▼4.54 | 38.22 ▼3.06 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 1.97 ▼0.02 | 34.26 ▼4.06 | 35.91 ▲2.80 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.11 ▼0.02 | 694.17 ▲15.96 | 59.37 ▲5.21 |
Media Library /wp-admin/upload.php | 1,399 ▼1 | 4.19 ▲0.00 | 93.49 ▲0.33 | 43.80 ▼3.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- envothemes-demo-import-version
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
There were not plugin tags detected
envothemes-demo-import/envothemes-demo-import.php Passed 13 tests
The main PHP file in "EnvoThemes Demo Import" ver. 1.3.0 adds more information about the plugin and also serves as the entry point for this plugin
95 characters long description:
Import EnvoThemes official themes demo content, widgets and theme settings with just one click.
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 detected7,110 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 984 | 1,048 | 4,268 |
CSS | 9 | 264 | 14 | 1,981 |
JavaScript | 6 | 296 | 151 | 861 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 37.74 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 196.00 |
Average method complexity | 5.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 1 | 5.26% |
Methods | 144 | |
▷ Static methods | 24 | 16.67% |
▷ Public methods | 134 | 93.06% |
▷ Protected methods | 4 | 2.78% |
▷ Private methods | 6 | 4.17% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 0.53MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/envo-online-store-notify.png | 112.93KB | 32.56KB | ▼ 71.17% |
img/envo-shop-logo.png | 1.90KB | 1.17KB | ▼ 38.43% |
img/envo-online-store-logo.png | 2.79KB | 1.66KB | ▼ 40.64% |
img/envo-shop-notify.png | 125.06KB | 31.75KB | ▼ 74.61% |
img/envo-shopper.png | 73.10KB | 21.66KB | ▼ 70.38% |