84% wp-to-trello

Code Review | WP To Trello

WordPress plugin WP To Trello scored 84% from 54 tests.

About plugin

  • Plugin page: wp-to-trello
  • Plugin version: 0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 5.8.1
  • First release: Jun 4, 2020
  • Latest release: Jun 11, 2020
  • Number of updates: 9
  • Update frequency: every 3.2 days
  • Top authors: tegos (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 277 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼1.78MB] [CPU: ▼183.90ms] Passed 4 tests

Analyzing server-side resources used by WP To Trello
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.85 ▼0.996.63 ▼23.36
Dashboard /wp-admin1.87 ▼1.196.54 ▼29.02
Posts /wp-admin/edit.php1.87 ▼1.247.74 ▼36.58
Add New Post /wp-admin/post-new.php1.87 ▼3.566.55 ▼642.98
Media Library /wp-admin/upload.php1.87 ▼1.135.98 ▼27.03

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP To Trello
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,723 ▲15115.63 ▲0.108.35 ▼8.1846.25 ▲2.23
Dashboard /wp-admin3,006 ▲756.03 ▼0.06171.07 ▲25.70110.85 ▼2.99
Posts /wp-admin/edit.php2,759 ▲202.73 ▲0.0174.26 ▲6.6989.30 ▲5.06
Add New Post /wp-admin/post-new.php1,696 ▲2418.80 ▼0.09415.57 ▲25.18112.02 ▲1.99
Media Library /wp-admin/upload.php1,827 ▲205.05 ▲0.02161.27 ▲2.68115.87 ▼2.40

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
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5505
    load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.

Smoke tests 75% from 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 50% from 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
Almost there! Just fix the following items
  • 3× 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-to-trello/wp-to-trello.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-to-trello/views/sharingTrello-post-setting.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-to-trello/views/sharingTrello-ApiKey-setting.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Enter your trello API key), #2 (Set which board list the card will be created in when you post to wordpress)
You can take inspiration from this readme.txt

wp-to-trello/wp-to-trello.php Passed 13 tests

The main file in "WP To Trello" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
124 characters long description:
This plugin integrates wordpress and Trello.When you post an article to wordpress, this plugin will create a card in Trello.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected368 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP35838329
PO File1111139

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
2 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
wp-to-trello-screenshot-2.png34.64KB11.28KB▼ 67.44%
wp-to-trello-screenshot-1.png34.98KB10.85KB▼ 68.97%