89% inq-social

Code Review | InQ.Social For WordPress

WordPress plugin InQ.Social For WordPress scored89%from 54 tests.

About plugin

  • Plugin page: inq-social
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Oct 23, 2016
  • Latest release: Oct 24, 2016
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: inqsocial (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /515 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.89ms] Passed 4 tests

Server-side resources used by InQ.Social For WordPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0235.95 ▼6.17
Dashboard /wp-admin3.34 ▲0.0343.73 ▼3.78
Posts /wp-admin/edit.php3.39 ▲0.0342.32 ▼4.48
Add New Post /wp-admin/post-new.php5.93 ▲0.0477.68 ▼13.14
Media Library /wp-admin/upload.php3.26 ▲0.0333.99 ▼3.00

Server storage [IO: ▲0.01MB] [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: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

InQ.Social For WordPress: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲2014.36 ▲0.131.65 ▼0.2341.37 ▲0.03
Dashboard /wp-admin2,209 ▲375.70 ▲0.0986.57 ▼14.9475.99 ▲35.08
Posts /wp-admin/edit.php2,121 ▲212.05 ▲0.0334.52 ▲0.5432.23 ▼4.67
Add New Post /wp-admin/post-new.php1,541 ▲1522.99 ▼0.14721.78 ▲44.0063.48 ▲8.00
Media Library /wp-admin/upload.php1,411 ▲114.34 ▲0.2196.51 ▼12.3572.06 ▲23.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: customer relations management, analytics, e-commerce, advertising, marketing automation...

inq-social/index.php 85% from 13 tests

The primary PHP file in "InQ.Social For WordPress" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 296 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("inq-social.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin151 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16020133
JavaScript10018

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 code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icon.png0.35KB0.27KB▼ 21.94%