94% ap-stream-to-rocket

Code Review | AP Stream to Rocket

WordPress plugin AP Stream to Rocket scored 94% from 54 tests.

About plugin

  • Plugin page: ap-stream-to-rocket
  • Plugin version: 0.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.0.3
  • WordPress version: 5.9.2
  • First release: Oct 8, 2016
  • Latest release: Feb 21, 2019
  • Number of updates: 18
  • Update frequency: every 48.2 days
  • Top authors: f.staude (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 964 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼296.37ms] Passed 4 tests

Analyzing server-side resources used by AP Stream to Rocket
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0655.11 ▲5.95
Dashboard /wp-admin3.44 ▲0.0336.49 ▲4.14
Posts /wp-admin/edit.php3.67 ▲0.0337.84 ▲1.61
Add New Post /wp-admin/post-new.php6.91 ▼0.0792.05 ▼1,190.64
Media Library /wp-admin/upload.php3.32 ▲0.0223.43 ▼0.59

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

AP Stream to Rocket: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,775 ▲2115.67 ▲0.056.22 ▲0.242.22 ▼0.60
Dashboard /wp-admin2,906 ▲456.16 ▲0.00121.54 ▼15.39158.95 ▼2.72
Posts /wp-admin/edit.php2,700 ▲123.25 ▼0.0065.15 ▲1.80140.15 ▼1.60
Add New Post /wp-admin/post-new.php1,668 ▼2816.11 ▼4.87422.89 ▼18.49158.24 ▼13.46
Media Library /wp-admin/upload.php1,709 ▲145.53 ▲0.05138.62 ▼7.69189.91 ▼2.53

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix 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-rocket/ap-stream-to-rocket.php:21

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: You are using too many tags: 21 tag instead of maximum 10
Please take inspiration from this readme.txt

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

Analyzing the main PHP file in "AP Stream to Rocket" version 0.0.5
32 characters long description:
Send Stream logs to rocket.chat.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin133 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22816133

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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
PNG images were not found in this plugin