Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.55MB] [CPU: ▲8.13ms] Passed 4 tests
Analyzing server-side resources used by Advanced Import : One Click Import for WordPress or Theme Demo Data
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 69.35 ▲65.84 | 13,657,492.46 ▲13,657,451.92 |
Dashboard /wp-admin | 3.94 ▲0.59 | 91.77 ▲40.16 |
Posts /wp-admin/edit.php | 3.97 ▲0.57 | 53.65 ▼3.53 |
Add New Post /wp-admin/post-new.php | 6.44 ▲0.51 | 95.01 ▼12.97 |
Media Library /wp-admin/upload.php | 3.78 ▲0.51 | 45.57 ▲8.84 |
Advanced Import /wp-admin/tools.php?page=advanced-import-tool | 3.79 | 44.33 |
Demo Import /wp-admin/themes.php?page=advanced-import | 3.79 | 44.55 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
advanced_import_settings_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
agent_d045983d122a96f235928702675643f8 |
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Import : One Click Import for WordPress or Theme Demo Data
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.72 ▲0.38 | 1.90 ▲0.35 | 45.22 ▲3.25 |
Dashboard /wp-admin | 2,203 ▲26 | 5.59 ▼0.03 | 89.24 ▼2.77 | 45.75 ▲1.21 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.95 ▼0.02 | 36.34 ▼4.65 | 33.64 ▼3.42 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 18.08 ▼5.25 | 667.28 ▲45.51 | 66.69 ▲8.17 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.18 ▲0.01 | 105.23 ▼7.35 | 44.36 ▼2.34 |
Advanced Import /wp-admin/tools.php?page=advanced-import-tool | 1,188 | 3.46 | 44.40 | 31.27 |
Demo Import /wp-admin/themes.php?page=advanced-import | 1,187 | 3.50 | 45.44 | 28.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- agent_d045983d122a96f235928702675643f8
- can_compress_scripts
- theysaidso_admin_options
- advanced_import_settings_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 25 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=advanced-import
- > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 25 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=advanced-import
- > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/advanced-import/advanced-import.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/advanced-import/example.php:83
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: import, advanced import, customizer import, theme import, widget import...
advanced-import/advanced-import.php Passed 13 tests
The main file in "Advanced Import : One Click Import for WordPress or Theme Demo Data" v. 1.4.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
71 characters long description:
Easily import demo data starter site packages or Migrate your site data
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin4,961 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 583 | 1,392 | 2,886 |
JavaScript | 4 | 507 | 226 | 2,074 |
CSS | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 41.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 385.00 |
Average method complexity | 5.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 109 | |
▷ Static methods | 8 | 7.34% |
▷ Public methods | 82 | 75.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 27 | 24.77% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected