84% ap-stream-to-gelf

Code Review | AP Stream to GELF

WordPress plugin AP Stream to GELF scored 84% from 54 tests.

About plugin

  • Plugin page: ap-stream-to-gelf
  • Plugin version: 0.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.6.1
  • WordPress version: 6.3.1
  • First release: Nov 5, 2016
  • Latest release: Nov 5, 2016
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: f.staude (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,095 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by AP Stream to GELF
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.50 ▼0.69
Dashboard /wp-admin3.32 ▲0.0246.25 ▼1.34
Posts /wp-admin/edit.php3.37 ▲0.0250.04 ▲4.44
Add New Post /wp-admin/post-new.php5.90 ▲0.0285.55 ▼14.47
Media Library /wp-admin/upload.php3.24 ▲0.0235.26 ▼0.93

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for AP Stream to GELF
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲7213.23 ▼1.061.65 ▼0.2543.54 ▼2.89
Dashboard /wp-admin2,210 ▲225.84 ▼0.0697.10 ▼15.9539.56 ▼2.05
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0339.52 ▲2.7735.45 ▲3.71
Add New Post /wp-admin/post-new.php1,540 ▲723.37 ▼0.09592.20 ▼90.5852.99 ▲0.57
Media Library /wp-admin/upload.php1,389 ▲44.21 ▼0.0295.39 ▼9.4841.32 ▼4.42

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

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 | 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 errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ap-stream-to-gelf/ap-stream-to-gelf.php:20

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: There are too many tags (22 tag instead of maximum 10)
The official readme.txt is a good inspiration

ap-stream-to-gelf/ap-stream-to-gelf.php 92% from 13 tests

The principal PHP file in "AP Stream to GELF" v. 0.0.2 is loaded by WordPress automatically on each request
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
No dangerous file extensions were detected183 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
Bourne Shell124697
PHP2261586

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 issues
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity3.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