84% sipexa-flow

Code Review | Sipexa Flow for WordPress

WordPress plugin Sipexa Flow for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: sipexa-flow
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.1-5.1.1
  • WordPress version: 6.3.1
  • First release: Nov 7, 2017
  • Latest release: Mar 30, 2019
  • Number of updates: 16
  • Update frequency: every 31.8 days
  • Top authors: sipexa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /868 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.64ms] Passed 4 tests

Analyzing server-side resources used by Sipexa Flow for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.64 ▼1.73
Dashboard /wp-admin3.32 ▲0.0146.49 ▼2.20
Posts /wp-admin/edit.php3.37 ▲0.0144.55 ▼0.80
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.31 ▼9.81
Media Library /wp-admin/upload.php3.24 ▲0.0136.37 ▲3.38
Create Workspace /wp-admin/admin.php?page=sipexa-flow-create-workspace3.2133.58
Sign in to Workspace /wp-admin/admin.php?page=sipexa-flow-sign-in-to-workspace3.2130.53
Sipexa Flow /wp-admin/admin.php?page=sipexa-flow-plugin3.2026.55

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

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

Browser metrics Passed 4 tests

Sipexa Flow for WordPress: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲10613.15 ▼1.221.66 ▼0.1439.19 ▼8.34
Dashboard /wp-admin2,233 ▲454.85 ▼1.0598.66 ▼7.2838.65 ▼7.96
Posts /wp-admin/edit.php2,116 ▲272.01 ▼0.0334.40 ▼2.0736.59 ▲4.13
Add New Post /wp-admin/post-new.php1,542 ▲923.18 ▼0.25684.62 ▼1.4762.19 ▲10.53
Media Library /wp-admin/upload.php1,412 ▲244.26 ▲0.06110.23 ▲1.9448.39 ▼0.48
Create Workspace /wp-admin/admin.php?page=sipexa-flow-create-workspace77029.48708.2468.74
Sign in to Workspace /wp-admin/admin.php?page=sipexa-flow-sign-in-to-workspace74421.70556.6945.87
Sipexa Flow /wp-admin/admin.php?page=sipexa-flow-plugin1,3189.01284.2858.18

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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_filter() in wp-content/plugins/sipexa-flow/sipexa-flow.php:14

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6, #7, #8, #9 in sipexa-flow/assets to your readme.txt
The official readme.txt might help

sipexa-flow/sipexa-flow.php 92% from 13 tests

The main file in "Sipexa Flow for WordPress" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 225 characters long)

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
Success! There were no dangerous files found in this plugin132 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1181291
JavaScript13041

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
logo.png3.65KB0.89KB▼ 75.49%