10% talk-to-composer

Code Review | Talk to Composer

WordPress plugin Talk to Composer scored10%from 54 tests.

About plugin

  • Plugin page: talk-to-composer
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.5
  • WordPress version: 6.3.1
  • First release: Apr 27, 2016
  • Latest release: Apr 27, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: heiglandreas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /532 total downloads

Benchmarks

Plugin footprint 57% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/talk-to-composer/src/TalkToComposer.php+75
    Undefined variable: output

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

An overview of server-side resources used by Talk to Composer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.97 ▲0.38
Dashboard /wp-admin3.31 ▲0.0144.55 ▼4.81
Posts /wp-admin/edit.php3.36 ▲0.0146.26 ▲2.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0179.61 ▼20.05
Media Library /wp-admin/upload.php3.24 ▲0.0136.06 ▲0.39

Server storage [IO: ▲2.74MB] [DB: ▲0.07MB] 67% from 3 tests

A short overview of filesystem and database impact
It is recommended to fix the following issues
  • You have illegally modified 1 file (0.14KB) outside of "wp-content/plugins/talk-to-composer/" and "wp-content/uploads/"
    • (new file) composer.json
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Talk to Composer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.001.82 ▲0.2439.91 ▼0.83
Dashboard /wp-admin2,195 ▲175.50 ▼0.1183.76 ▼17.0639.24 ▼4.12
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0133.35 ▼3.8231.72 ▼4.09
Add New Post /wp-admin/post-new.php1,526 ▼023.34 ▲0.38676.78 ▲24.9860.06 ▲8.71
Media Library /wp-admin/upload.php1,403 ▲34.19 ▲0.0892.16 ▼8.0344.91 ▼0.78

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please 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 undefined function add_action() in wp-content/plugins/talk-to-composer/index.php:39
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/talk-to-composer/src/TalkToComposer.php on line 243

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: composer, git

talk-to-composer/index.php 92% from 13 tests

"Talk to Composer" version 1.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("talk-to-composer.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected54,166 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP345,17432,61654,166

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods660.00%
▷ Protected methods440.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected