Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.12MB] [CPU: ▼13.26ms] Passed 4 tests
A check of server-side resources used by Gearment Import Flatsome
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.59 | 44.90 ▲3.67 |
Dashboard /wp-admin | 3.91 ▲0.61 | 51.35 ▼1.94 |
Posts /wp-admin/edit.php | 3.95 ▲0.59 | 48.79 ▼1.14 |
Add New Post /wp-admin/post-new.php | 3.68 ▼2.21 | 37.94 ▼53.37 |
Media Library /wp-admin/upload.php | 3.79 ▲0.56 | 40.26 ▲3.43 |
Gearment Import /wp-admin/options-general.php?page=gm-import | 3.75 | 36.14 |
Server storage [IO: ▲2.26MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 152 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Gearment Import Flatsome
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,907 ▲172 | 13.56 ▼0.82 | 9.18 ▲7.36 | 43.12 ▼2.86 |
Dashboard /wp-admin | 2,214 ▲26 | 6.08 ▲0.27 | 112.22 ▼2.67 | 42.89 ▼3.13 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.06 ▲0.03 | 35.57 ▼1.47 | 34.58 ▼1.93 |
Add New Post /wp-admin/post-new.php | 1,524 ▲10 | 23.65 ▲6.11 | 681.52 ▼6.05 | 59.46 ▲9.65 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.19 ▼0.09 | 97.53 ▼4.51 | 41.92 ▼1.48 |
Gearment Import /wp-admin/options-general.php?page=gm-import | 870 | 2.03 | 25.62 | 31.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
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)
Good news, no errors were detected
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
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/gm-import/public/partials/gm-import-public-display.php
- 67× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gm-import/includes/attachment.php:27
- > PHP Fatal error
Uncaught Error: Class 'Box\\Spout\\Writer\\AbstractWriter' not found in wp-content/plugins/gm-import/admin/partials/spout-master/src/Spout/Writer/CSV/Writer.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/gm-import/admin/partials/gm-import-page-settings.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Box\\Spout\\Common\\Escaper\\EscaperInterface' not found in wp-content/plugins/gm-import/admin/partials/spout-master/src/Spout/Common/Escaper/XLSX.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Box\\Spout\\Reader\\IteratorInterface' not found in wp-content/plugins/gm-import/admin/partials/spout-master/src/Spout/Reader/CSV/SheetIterator.php:13
- > PHP Fatal error
Uncaught Error: Class 'Box\\Spout\\Reader\\Exception\\ReaderException' not found in wp-content/plugins/gm-import/admin/partials/spout-master/src/Spout/Reader/Exception/ReaderNotOpenedException.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Box\\Spout\\Reader\\IteratorInterface' not found in wp-content/plugins/gm-import/admin/partials/spout-master/src/Spout/Reader/ODS/RowIterator.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gm-import/includes/thumbnail.php:3
- > PHP Fatal error
Uncaught Error: Class 'Box\\Spout\\Reader\\AbstractReader' not found in wp-content/plugins/gm-import/admin/partials/spout-master/src/Spout/Reader/XLSX/Reader.php:15
- > PHP Fatal error
Uncaught Error: Class 'Box\\Spout\\Reader\\AbstractReader' not found in wp-content/plugins/gm-import/admin/partials/spout-master/src/Spout/Reader/CSV/Reader.php:14
- > 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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: gearment, import, swatch, color
gm-import/gm-import.php 85% from 13 tests
"Gearment Import Flatsome" version 2.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- 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
- Description: Please keep the plugin description shorter than 140 characters (currently 221 characters long)
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
There were no executable files found in this plugin9,620 lines of code in 137 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 125 | 2,398 | 5,457 | 8,589 |
JavaScript | 4 | 149 | 140 | 704 |
CSS | 3 | 25 | 8 | 237 |
JSON | 1 | 1 | 0 | 41 |
Markdown | 1 | 24 | 0 | 39 |
HTML | 3 | 2 | 0 | 10 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 7.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 243.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 61.00 |
Code structure | ||
---|---|---|
Namespaces | 29 | |
Interfaces | 8 | |
Traits | 2 | |
Classes | 95 | |
▷ Abstract classes | 9 | 9.47% |
▷ Concrete classes | 86 | 90.53% |
▷ Final classes | 0 | 0.00% |
Methods | 642 | |
▷ Static methods | 30 | 4.67% |
▷ Public methods | 408 | 63.55% |
▷ Protected methods | 202 | 31.46% |
▷ Private methods | 32 | 4.98% |
Functions | 93 | |
▷ Named functions | 88 | 94.62% |
▷ Anonymous functions | 5 | 5.38% |
Constants | 181 | |
▷ Global constants | 7 | 3.87% |
▷ Class constants | 174 | 96.13% |
▷ Public constants | 174 | 100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
File_example.PNG | 10.34KB | 6.00KB | ▼ 42.01% |