84% ap-stream-to-rocket

Code Review | AP Stream to Rocket

WordPress plugin AP Stream to Rocket scored84%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: 6.3.1
  • 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 /1,200 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.67ms] Passed 4 tests

A check of server-side resources used by AP Stream to Rocket
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.56 ▲1.17
Dashboard /wp-admin3.33 ▲0.0352.09 ▲1.43
Posts /wp-admin/edit.php3.38 ▲0.0350.81 ▲4.59
Add New Post /wp-admin/post-new.php5.91 ▲0.0386.84 ▼12.12
Media Library /wp-admin/upload.php3.25 ▲0.0336.27 ▼1.16

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

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

Browser metrics Passed 4 tests

A check of browser resources used by AP Stream to Rocket
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6013.25 ▼1.371.79 ▲0.0343.82 ▼0.71
Dashboard /wp-admin2,227 ▲245.86 ▲0.83108.11 ▲2.8038.14 ▼2.27
Posts /wp-admin/edit.php2,103 ▲32.03 ▲0.0435.60 ▼1.7935.32 ▲1.13
Add New Post /wp-admin/post-new.php1,537 ▲623.08 ▲0.00682.05 ▼1.4858.60 ▲11.77
Media Library /wp-admin/upload.php1,406 ▲64.25 ▲0.0296.71 ▼17.1643.46 ▼6.29

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

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
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > 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 smoke test targeting browser errors/issues
There were no browser issues found

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 to be fixed:
  • Tags: There are too many tags (21 tag instead of maximum 10)
You can take inspiration from this readme.txt

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

The entry point to "AP Stream to Rocket" version 0.0.5 is a PHP file that has certain tags in its header comment area
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

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected