83% wp-social-importer

Code Review | WP Social Importer

WordPress plugin WP Social Importer scored83%from 54 tests.

About plugin

  • Plugin page: wp-social-importer
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9.4
  • WordPress version: 6.3.1
  • First release: Feb 19, 2018
  • Latest release: Feb 19, 2018
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: danfavs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /714 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.01ms] Passed 4 tests

This is a short check of server-side resources used by WP Social Importer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.22 ▼2.17
Dashboard /wp-admin3.37 ▲0.0344.89 ▼14.01
Posts /wp-admin/edit.php3.48 ▲0.1349.32 ▼1.14
Add New Post /wp-admin/post-new.php5.95 ▲0.07104.97 ▲1.28
Media Library /wp-admin/upload.php3.29 ▲0.0737.07 ▲3.92
Edit account /wp-admin/admin.php?page=accounts-edit-aio-importer3.3032.95
Import from account /wp-admin/admin.php?page=accounts-import-aio-importer3.3131.56

Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WP Social Importer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.57 ▼1.061.78 ▲0.0943.96 ▲1.97
Dashboard /wp-admin2,218 ▲304.97 ▲0.09113.36 ▼7.4175.94 ▲31.98
Posts /wp-admin/edit.php2,107 ▲181.99 ▼0.0238.30 ▼4.0833.82 ▼3.26
Add New Post /wp-admin/post-new.php1,689 ▲15924.65 ▲6.43682.82 ▲53.8143.84 ▼12.22
Media Library /wp-admin/upload.php1,394 ▲34.21 ▲0.03101.71 ▼0.9377.44 ▲32.63
Edit account /wp-admin/admin.php?page=accounts-edit-aio-importer8102.0724.6726.50
Import from account /wp-admin/admin.php?page=accounts-import-aio-importer2,1492.3827.8529.10

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=accounts-edit-aio-importer
    • > Notice in wp-content/plugins/wp-social-importer/accounts-edit.php+87
    Trying to access array offset on value of type null
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=accounts-import-aio-importer
    • > Warning in wp-includes/pluggable.php+1438
    Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: No valid plugin tags found
  • Stable tag: Empty string
  • Donate link: Invalid URI found ("")
You can look at the official readme.txt

wp-social-importer/aio-feed-importer.php 85% from 13 tests

The principal PHP file in "WP Social Importer" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-social-importer.php" instead of "aio-feed-importer.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin3,101 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP128981,3982,809
Markdown1500177
CSS110115

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity19.39
▷ Minimum class complexity1.00
▷ Maximum class complexity60.00
Average method complexity3.02
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes211.11%
▷ Concrete classes1688.89%
▷ Final classes00.00%
Methods168
▷ Static methods105.95%
▷ Public methods12675.00%
▷ Protected methods2716.07%
▷ Private methods158.93%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
16 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/edit-3-24.png0.44KB0.53KB0.00%
images/stack-of-photos-32.png0.89KB0.94KB0.00%
images/stack-of-photos-16.png0.42KB0.56KB0.00%
images/delete-16.png0.31KB0.46KB0.00%
images/arrow-87-24.png0.45KB0.58KB0.00%