Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.59MB] [CPU: ▲0.19ms] Passed 4 tests
Server-side resources used by WPElemento Importer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.11 ▲0.64 | 41.10 ▲0.59 |
Dashboard /wp-admin | 3.94 ▲0.59 | 53.67 ▼9.47 |
Posts /wp-admin/edit.php | 4.00 ▲0.63 | 58.25 ▲10.65 |
Add New Post /wp-admin/post-new.php | 6.46 ▲0.57 | 99.70 ▼1.01 |
Media Library /wp-admin/upload.php | 3.81 ▲0.57 | 47.29 ▲12.25 |
Install Plugins /wp-admin/themes.php?page=wpelemento-importer-tgmpa-install-plugins | 3.87 | 38.91 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WPElemento Importer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲95 | 14.26 ▼0.47 | 1.56 ▼0.07 | 35.84 ▼9.01 |
Dashboard /wp-admin | 2,241 ▲64 | 5.62 ▼0.06 | 93.98 ▼7.93 | 57.76 ▲11.86 |
Posts /wp-admin/edit.php | 2,164 ▲64 | 2.19 ▲0.20 | 41.42 ▲4.60 | 52.66 ▲17.07 |
Add New Post /wp-admin/post-new.php | 1,573 ▲47 | 23.41 ▲0.07 | 594.96 ▼73.35 | 68.25 ▲26.01 |
Media Library /wp-admin/upload.php | 1,460 ▲60 | 4.20 ▼0.02 | 97.73 ▲1.38 | 59.39 ▲18.21 |
Install Plugins /wp-admin/themes.php?page=wpelemento-importer-tgmpa-install-plugins | 1,038 | 2.02 | 24.06 | 39.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/wpelemento-importer/theme-wizard/config.php:17
- > PHP Warning
Use of undefined constant EDI_DIR - assumed 'EDI_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpelemento-importer/theme-wizard/tgm/tgm.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/wpelemento-importer/theme-wizard/tgm/class-tgm-plugin-activation.php:2012
- > PHP Fatal error
require(): Failed opening required 'EDI_DIRtheme-wizard/tgm/class-tgm-plugin-activation.php' (include_path='.:/usr/share/php') in wp-content/plugins/wpelemento-importer/theme-wizard/tgm/tgm.php on line 2
- > PHP Warning
require(EDI_DIRtheme-wizard/tgm/class-tgm-plugin-activation.php): failed to open stream: No such file or directory in wp-content/plugins/wpelemento-importer/theme-wizard/tgm/tgm.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wpelemento-importer/plugin.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
3 plugin tags: templates, website builder, one click demo import
wpelemento-importer/plugin.php 92% from 13 tests
This is the main PHP file of "WPElemento Importer" version 0.3.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpelemento-importer.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin4,261 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 522 | 1,709 | 2,720 |
CSS | 2 | 9 | 19 | 913 |
JavaScript | 3 | 94 | 43 | 628 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 58.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 195.00 |
Average method complexity | 4.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 141 | |
▷ Static methods | 13 | 9.22% |
▷ Public methods | 118 | 83.69% |
▷ Protected methods | 23 | 16.31% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 8 | 72.73% |
▷ Class constants | 3 | 27.27% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.03MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
theme-wizard/assets/images/check-mark.png | 10.44KB | 9.66KB | ▼ 7.47% |
theme-wizard/assets/images/battery.png | 9.22KB | 8.25KB | ▼ 10.49% |
theme-wizard/assets/images/plugin.png | 6.19KB | 5.24KB | ▼ 15.26% |