90% wp-to-zendesk

Code Review | Wordpress Page to Zendesk Article

WordPress plugin Wordpress Page to Zendesk Article scored90%from 54 tests.

About plugin

  • Plugin page: wp-to-zendesk
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Feb 22, 2017
  • Latest release: Feb 22, 2017
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: vitalyu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /405 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: ▼10.33ms] Passed 4 tests

A check of server-side resources used by Wordpress Page to Zendesk Article
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.63 ▼0.17
Dashboard /wp-admin3.32 ▼0.0351.24 ▼11.84
Posts /wp-admin/edit.php3.37 ▲0.0148.06 ▼3.82
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.26 ▼25.50
Media Library /wp-admin/upload.php3.24 ▲0.0138.48 ▲1.76

Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Wordpress Page to Zendesk Article
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.72 ▲0.781.86 ▼0.0545.86 ▲3.38
Dashboard /wp-admin2,195 ▲155.62 ▲0.0584.12 ▼5.4639.99 ▼4.83
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0036.08 ▼3.8336.83 ▼3.71
Add New Post /wp-admin/post-new.php1,527 ▼123.15 ▼0.05680.89 ▲14.2951.37 ▼3.79
Media Library /wp-admin/upload.php1,403 ▼04.18 ▼0.0795.24 ▼8.0140.74 ▼7.27

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === wp-to-zendesk === )
You can look at the official readme.txt

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

The principal PHP file in "Wordpress Page to Zendesk Article" v. 0.1 is loaded by WordPress automatically on each request
61 characters long description:
Wordpress Page/Post to Zendesk Article Synchronization Plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin153 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23846153

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions00.00%
▷ Anonymous functions5100.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
There are no PNG files in this plugin