84% easy-site-importer

Code Review | Easy Site Importer

WordPress plugin Easy Site Importer scored84%from 54 tests.

About plugin

  • Plugin page: easy-site-importer
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.2
  • WordPress version: 6.3.1
  • First release: Feb 9, 2015
  • Latest release: Aug 14, 2015
  • Number of updates: 26
  • Update frequency: every 7.2 days
  • Top authors: awfowler (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

90+ active /11,966 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.96 ▲0.01
Dashboard /wp-admin3.36 ▲0.0148.39 ▼10.12
Posts /wp-admin/edit.php3.41 ▲0.0544.48 ▼3.84
Add New Post /wp-admin/post-new.php5.94 ▲0.0581.47 ▼12.12
Media Library /wp-admin/upload.php3.28 ▲0.0536.47 ▲1.39
Easy Site Importer /wp-admin/options-general.php?page=site_importer3.2533.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.22 ▼1.131.63 ▼0.1944.08 ▼2.32
Dashboard /wp-admin2,209 ▲185.90 ▲1.01109.80 ▲5.7943.13 ▼2.04
Posts /wp-admin/edit.php2,095 ▲62.02 ▼0.0233.82 ▼1.7839.16 ▲7.27
Add New Post /wp-admin/post-new.php1,519 ▲517.72 ▲0.22637.18 ▼42.2047.37 ▼13.46
Media Library /wp-admin/upload.php1,394 ▲64.20 ▲0.0195.53 ▲2.0141.77 ▲2.33
Easy Site Importer /wp-admin/options-general.php?page=site_importer8622.0122.5630.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP32125081,632
CSS1293209

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 code0.43
Average class complexity184.50
▷ Minimum class complexity177.00
▷ Maximum class complexity192.00
Average method complexity7.59
▷ Minimum method complexity1.00
▷ Maximum method complexity77.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods55
▷ Static methods23.64%
▷ Public methods55100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
img/scrape_settings.png38.73KB14.03KB▼ 63.77%
img/instructions.png99.44KB30.83KB▼ 69.00%
img/tutor.png1.20KB1.29KB0.00%
img/blackboard.png33.31KB23.90KB▼ 28.25%
img/structure.png1.12KB1.37KB0.00%