83% iqiplus-sns-share-tools-for-japan

Code Review | Plugin Name: iQiPlus

WordPress plugin Plugin Name: iQiPlusscored83%from 54 tests.

About plugin

  • Plugin page: iqiplus-sns-share...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0.1-1.0.1
  • WordPress version: 6.3.1
  • First release: Apr 28, 2014
  • Latest release: Feb 7, 2015
  • Number of updates: 7
  • Update frequency: every 41.2 days
  • Top authors: iQI (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,268 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.98ms] Passed 4 tests

Server-side resources used by Plugin Name: iQiPlus
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.21 ▼2.44
Dashboard /wp-admin3.31 ▲0.0145.33 ▲0.63
Posts /wp-admin/edit.php3.36 ▲0.0046.31 ▼4.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.46 ▼5.23
Media Library /wp-admin/upload.php3.23 ▲0.0033.04 ▼4.01

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

Input-output and database impact 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
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Plugin Name: iQiPlus
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.191.64 ▼0.0141.12 ▲0.71
Dashboard /wp-admin2,206 ▲185.79 ▲0.9299.59 ▼2.6640.93 ▼5.32
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0035.18 ▼6.3136.36 ▼3.31
Add New Post /wp-admin/post-new.php1,542 ▲918.44 ▼4.79599.39 ▼37.2361.81 ▲8.61
Media Library /wp-admin/upload.php1,391 ▲64.26 ▲0.1196.95 ▼5.2541.57 ▼1.96

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/iqiplus-sns-share-tools-for-japan/iQiPlus.php:38

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 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (iQiPlus for WordPress) image not found
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === Plugin Name: iQiPlus=== )
You can take inspiration from this readme.txt

iqiplus-sns-share-tools-for-japan/iQiPlus.php 92% from 13 tests

This is the main PHP file of "Plugin Name: iQiPlus" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("iqiplus-sns-share-tools-for-japan.php" instead of "iQiPlus.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 detected20 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1101315
CSS1305

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
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
1 PNG file occupies 0.11MB with 0.08MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png116.03KB37.15KB▼ 67.98%