89% octagon-support-forum-for-envato

Code Review | Support Forum for Envato

WordPress plugin Support Forum for Envato scored89%from 54 tests.

About plugin

  • Plugin page: octagon-support-f...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.2.2
  • WordPress version: 6.3.1
  • First release: Sep 2, 2019
  • Latest release: Sep 2, 2019
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: octagonwebstudio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,430 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.61MB] [CPU: ▼14.20ms] Passed 4 tests

A check of server-side resources used by Support Forum for Envato
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.14 ▼0.3227.26 ▼17.16
Dashboard /wp-admin3.42 ▲0.1151.54 ▼6.23
Posts /wp-admin/edit.php3.53 ▲0.1855.96 ▲8.10
Add New Post /wp-admin/post-new.php3.56 ▼2.3263.08 ▼38.63
Media Library /wp-admin/upload.php3.34 ▲0.1143.93 ▲5.24

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
sfe_purchase_form_page_id
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Support Forum for Envato: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,477 ▼28414.21 ▼0.420.55 ▼1.2414.27 ▼23.69
Dashboard /wp-admin2,210 ▲395.54 ▼0.1291.51 ▼13.2947.47 ▲3.00
Posts /wp-admin/edit.php2,095 ▼51.99 ▲0.0242.72 ▲6.6743.74 ▲9.36
Add New Post /wp-admin/post-new.php3,115 ▲1,5867.71 ▼15.43210.65 ▼469.4380.08 ▲19.22
Media Library /wp-admin/upload.php1,415 ▲184.19 ▼0.0899.50 ▼17.6646.46 ▼1.24

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • sfe_purchase_form_page_id

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: help, support, topic, bbpress, thread...

octagon-support-forum-for-envato/support-forum-for-envato.php 85% from 13 tests

"Support Forum for Envato" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("octagon-support-forum-for-envato.php" instead of "support-forum-for-envato.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
There were no executable files found in this plugin714 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP7261351522
Markdown3620112
CSS1181380

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity9.71
▷ Minimum class complexity1.00
▷ Maximum class complexity35.00
Average method complexity2.39
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods44
▷ Static methods1022.73%
▷ Public methods3375.00%
▷ Protected methods00.00%
▷ Private methods1125.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin