84% ap-stream-to-slack

Code Review | AP Stream to Slack

WordPress plugin AP Stream to Slack scored84%from 54 tests.

About plugin

  • Plugin page: ap-stream-to-slack
  • Plugin version: 0.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.6.1
  • WordPress version: 6.3.1
  • First release: Oct 8, 2016
  • Latest release: Nov 4, 2016
  • Number of updates: 14
  • Update frequency: every 2.0 days
  • Top authors: f.staude (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /914 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.60ms] Passed 4 tests

An overview of server-side resources used by AP Stream to Slack
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.0342.01 ▼2.55
Dashboard /wp-admin3.59 ▲0.0350.24 ▼6.12
Posts /wp-admin/edit.php3.70 ▲0.0254.85 ▲4.38
Add New Post /wp-admin/post-new.php6.17 ▲0.0297.88 ▲4.14
Media Library /wp-admin/upload.php3.51 ▲0.0239.63 ▲2.12

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for AP Stream to Slack
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.36 ▲0.172.10 ▲0.1644.73 ▲2.40
Dashboard /wp-admin2,204 ▲245.69 ▲0.0693.34 ▼1.4442.70 ▼4.33
Posts /wp-admin/edit.php2,106 ▲61.98 ▼0.0340.52 ▼1.3638.43 ▲7.44
Add New Post /wp-admin/post-new.php1,532 ▲617.83 ▲0.07692.06 ▲76.7452.88 ▲3.64
Media Library /wp-admin/upload.php1,406 ▲94.20 ▼0.07103.59 ▼6.0142.37 ▼2.91

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ap-stream-to-slack/ap-stream-to-slack.php:20

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 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 21 tag instead of maximum 10
You can look at the official readme.txt

ap-stream-to-slack/ap-stream-to-slack.php Passed 13 tests

The main file in "AP Stream to Slack" v. 0.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
26 characters long description:
Send Stream logs to slack.

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 plugin230 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22915133
Bourne Shell124697

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin