84% wp-connect-coil

Code Review | WP Connect Coil

WordPress plugin WP Connect Coil scored84%from 54 tests.

About plugin

  • Plugin page: wp-connect-coil
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-5.0
  • WordPress version: 6.3.1
  • First release: Feb 23, 2019
  • Latest release: Feb 23, 2019
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: tarotaro080808 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /820 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.78ms] Passed 4 tests

Analyzing server-side resources used by WP Connect Coil
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.61 ▼3.42
Dashboard /wp-admin3.31 ▲0.0147.44 ▼1.36
Posts /wp-admin/edit.php3.36 ▲0.0148.20 ▼2.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.07 ▼5.34
Media Library /wp-admin/upload.php3.24 ▲0.0135.09 ▼3.99
Coil Setting /wp-admin/options-general.php?page=coil-setting3.2032.44

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WP Connect Coil
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.24 ▼1.161.83 ▲0.0846.43 ▼0.41
Dashboard /wp-admin2,213 ▲254.90 ▼0.99106.79 ▲1.1140.57 ▼1.00
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0442.00 ▲3.9935.54 ▲1.53
Add New Post /wp-admin/post-new.php1,537 ▲423.20 ▼0.12589.14 ▼92.6354.34 ▼12.63
Media Library /wp-admin/upload.php1,395 ▲104.14 ▼0.0696.70 ▼3.0842.43 ▼3.42
Coil Setting /wp-admin/options-general.php?page=coil-setting7972.0224.6726.69

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-connect-coil/wp-connect-coil.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Admin setting page for WP Connect Coil) image not found
Please take inspiration from this readme.txt

wp-connect-coil/wp-connect-coil.php 92% from 13 tests

The main file in "WP Connect Coil" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin136 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2112392
PO File191244

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods571.43%
▷ Protected methods00.00%
▷ Private methods228.57%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.17MB with 0.12MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png169.83KB47.62KB▼ 71.96%