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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.52ms] Passed 4 tests
Analyzing server-side resources used by Easy Site Importer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.96 ▲0.01 |
Dashboard /wp-admin | 3.36 ▲0.01 | 48.39 ▼10.12 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 44.48 ▼3.84 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 81.47 ▼12.12 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.47 ▲1.39 |
Easy Site Importer /wp-admin/options-general.php?page=site_importer | 3.25 | 33.12 |
Server storage [IO: ▲0.30MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_easysiteimporter |
New WordPress options |
---|
tutor |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Easy Site Importer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.22 ▼1.13 | 1.63 ▼0.19 | 44.08 ▼2.32 |
Dashboard /wp-admin | 2,209 ▲18 | 5.90 ▲1.01 | 109.80 ▲5.79 | 43.13 ▼2.04 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.02 ▼0.02 | 33.82 ▼1.78 | 39.16 ▲7.27 |
Add New Post /wp-admin/post-new.php | 1,519 ▲5 | 17.72 ▲0.22 | 637.18 ▼42.20 | 47.37 ▼13.46 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.20 ▲0.01 | 95.53 ▲2.01 | 41.77 ▲2.33 |
Easy Site Importer /wp-admin/options-general.php?page=site_importer | 862 | 2.01 | 22.56 | 30.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- tutor
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/easy-site-importer/class/class-site-importer-admin.php:56
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/easy-site-importer/class/class-site-importer-admin.php on line 55
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: scraper, spider, migrate, crawler, import...
easy-site-importer/easy-site-importer.php Passed 13 tests
"Easy Site Importer" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
133 characters long description:
Easy Site Importer allows you to spider, scrape and copy content from another site making it the perfect migration tool for wordpress
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
Good job! No executable or dangerous file extensions detected1,841 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 212 | 508 | 1,632 |
CSS | 1 | 29 | 3 | 209 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 184.50 |
▷ Minimum class complexity | 177.00 |
▷ Maximum class complexity | 192.00 |
Average method complexity | 7.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 2 | 3.64% |
▷ Public methods | 55 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.17MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/scrape_settings.png | 38.73KB | 14.03KB | ▼ 63.77% |
img/instructions.png | 99.44KB | 30.83KB | ▼ 69.00% |
img/tutor.png | 1.20KB | 1.29KB | 0.00% |
img/blackboard.png | 33.31KB | 23.90KB | ▼ 28.25% |
img/structure.png | 1.12KB | 1.37KB | 0.00% |