84% allgrainbeer

Code Review | AllGrain.Beer

WordPress plugin AllGrain.Beer scored84%from 54 tests.

About plugin

  • Plugin page: allgrainbeer
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.2.3
  • WordPress version: 6.3.1
  • First release: Nov 14, 2014
  • Latest release: Oct 11, 2019
  • Number of updates: 11
  • Update frequency: every 162.9 days
  • Top authors: gabrielmcgovern (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,160 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Server-side resources used by AllGrain.Beer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.87 ▼0.36
Dashboard /wp-admin3.31 ▲0.0148.69 ▲2.19
Posts /wp-admin/edit.php3.36 ▲0.0044.01 ▼3.41
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.57 ▼12.82
Media Library /wp-admin/upload.php3.23 ▲0.0034.57 ▲1.02

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

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

Browser metrics Passed 4 tests

A check of browser resources used by AllGrain.Beer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.34 ▼0.972.08 ▲0.3143.57 ▼2.29
Dashboard /wp-admin2,206 ▲145.87 ▲0.9596.81 ▼20.5937.42 ▼9.41
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0338.65 ▲3.9631.03 ▼3.09
Add New Post /wp-admin/post-new.php1,547 ▲2518.49 ▼4.73596.72 ▼78.7165.31 ▲8.89
Media Library /wp-admin/upload.php1,391 ▲34.21 ▼0.0595.86 ▼2.0841.46 ▲0.07

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_oembed_add_provider() in wp-content/plugins/allgrainbeer/allgrainbeer.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 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
4 plugin tags: beer, embed, allgrainbeer, oembed

allgrainbeer/allgrainbeer.php Passed 13 tests

The principal PHP file in "AllGrain.Beer" v. 1.0.0 is loaded by WordPress automatically on each request
85 characters long description:
Adds oEmbed support for AllGrain.Beer - Try adding a recipe URL to your post or page!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin2 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1182

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin