84% post-waterfall

Code Review | Post Waterfall

WordPress plugin Post Waterfall scored84%from 54 tests.

About plugin

  • Plugin page: post-waterfall
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.5.1
  • WordPress version: 6.3.1
  • First release: Sep 3, 2020
  • Latest release: Sep 3, 2020
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: kpmcguire (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /440 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.15MB] [CPU: ▼6.08ms] Passed 4 tests

An overview of server-side resources used by Post Waterfall
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.13272.44 ▲225.73
Dashboard /wp-admin3.46 ▲0.1646.25 ▼6.81
Posts /wp-admin/edit.php3.57 ▲0.2245.80 ▼13.53
Add New Post /wp-admin/post-new.php6.04 ▲0.1684.03 ▼6.12
Media Library /wp-admin/upload.php3.38 ▲0.1636.03 ▲2.13
Post Waterfall /wp-admin/options-general.php?page=post-waterfall3.3531.58

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 13 new options
New WordPress options
post_waterfall_columns
post_waterfall_consumer_key
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
post_waterfall_oauth_access_token
post_waterfall_consumer_secret
db_upgraded
post_waterfall_username
theysaidso_admin_options
...

Browser metrics Passed 4 tests

Checking browser requirements for Post Waterfall
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,429 ▼30613.69 ▼0.710.50 ▼1.5111.99 ▼39.02
Dashboard /wp-admin2,210 ▲224.84 ▼0.95106.23 ▼7.0139.12 ▼3.16
Posts /wp-admin/edit.php2,096 ▲42.04 ▲0.0639.37 ▼5.7533.94 ▼1.84
Add New Post /wp-admin/post-new.php1,545 ▲318.46 ▲0.07590.68 ▼31.3583.97 ▲25.03
Media Library /wp-admin/upload.php1,386 ▼24.19 ▲0.0196.42 ▼15.8045.18 ▼1.31
Post Waterfall /wp-admin/options-general.php?page=post-waterfall9312.0428.0144.41

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 13 options
    • widget_recent-comments
    • can_compress_scripts
    • post_waterfall_consumer_secret
    • theysaidso_admin_options
    • post_waterfall_consumer_key
    • post_waterfall_count
    • post_waterfall_username
    • post_waterfall_oauth_access_token
    • widget_theysaidso_widget
    • widget_recent-posts
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-waterfall/post-waterfall.php:41

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 93% 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 require attention:
  • Requires at least: The plugin version is formatted incorrectly
Please take inspiration from this readme.txt

post-waterfall/post-waterfall.php 92% from 13 tests

The main file in "Post Waterfall" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,297 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP72697171,024
CSS1690268
SVG3114
JavaScript1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity18.20
▷ Minimum class complexity3.00
▷ Maximum class complexity31.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes120.00%
▷ Concrete classes480.00%
▷ Final classes00.00%
Methods52
▷ Static methods47.69%
▷ Public methods4484.62%
▷ Protected methods611.54%
▷ Private methods23.85%
Functions10
▷ Named functions880.00%
▷ Anonymous functions220.00%
Constants12
▷ Global constants00.00%
▷ Class constants12100.00%
▷ Public constants12100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin