Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▲0.72ms] Passed 4 tests
A check of server-side resources used by Catalog Importer, Scraper & Crawler
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 38.54 ▼4.71 |
Dashboard /wp-admin | 3.39 ▲0.09 | 58.52 ▲5.88 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 52.15 ▲0.78 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 100.04 ▲9.48 |
Media Library /wp-admin/upload.php | 3.32 ▲0.08 | 39.88 ▲0.91 |
Catalog Importer, Scraper & Crawler /wp-admin/tools.php?page=megaimporter | 3.26 | 33.31 |
Server storage [IO: ▲0.82MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 12 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_megaimporter_concurrents |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
megaimporter_clefacces |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Catalog Importer, Scraper & Crawler
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.25 ▼0.10 | 1.90 ▲0.05 | 43.24 ▲2.04 |
Dashboard /wp-admin | 2,202 ▲28 | 5.62 ▼0.03 | 95.91 ▲4.19 | 44.00 ▲2.65 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 1.97 ▼0.01 | 40.22 ▼2.93 | 36.46 ▼2.33 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.08 ▲0.06 | 673.25 ▼2.72 | 62.98 ▲10.44 |
Media Library /wp-admin/upload.php | 1,395 ▼8 | 4.20 ▲0.02 | 102.02 ▼9.16 | 46.11 ▼1.00 |
Catalog Importer, Scraper & Crawler /wp-admin/tools.php?page=megaimporter | 884 | 1.99 | 27.36 | 30.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_megaimporter_concurrents
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- megaimporter_clefacces
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/tools.php?page=megaimporter
- > Notice in wp-content/plugins/intelligent-importer/megaimporter.php+109
Undefined index: page2
- 5 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=megaimporter
- > Notice in wp-content/plugins/intelligent-importer/megaimporter.php+194
Undefined index: testExtraction
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/intelligent-importer/grl.php
- > /wp-content/plugins/intelligent-importer/bat.php
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: testExtraction in wp-content/plugins/intelligent-importer/grl.php on line 7
- > PHP Notice
Undefined index: testExtraction in wp-content/plugins/intelligent-importer/bat.php on line 14
- > PHP Notice
Undefined index: site_url in wp-content/plugins/intelligent-importer/bat.php on line 15
- > PHP Notice
Undefined index: HTTP_USER_AGENT in wp-content/plugins/intelligent-importer/bat.php on line 2
- > PHP Notice
Undefined index: HTTP_USER_AGENT in wp-content/plugins/intelligent-importer/grl.php on line 11
- > PHP Notice
Undefined index: site_url in wp-content/plugins/intelligent-importer/grl.php on line 18
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== intelligent-importer ===
) - Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in intelligent-importer/assets to your readme.txt
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
intelligent-importer/megaimporter.php 92% from 13 tests
The main PHP file in "Catalog Importer, Scraper & Crawler" ver. 5.1.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("intelligent-importer.php" instead of "megaimporter.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,701 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 482 | 189 | 1,611 |
HTML | 1 | 0 | 220 | 90 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 18.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 4.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 9 | |
▷ Static methods | 1 | 11.11% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 42 | |
▷ Named functions | 42 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/societe.png | 4.89KB | 1.95KB | ▼ 60.04% |