79% wp-scrive

Code Review | WP Scrive by Webbstart

WordPress plugin WP Scrive by Webbstart scored 79% from 54 tests.

About plugin

  • Plugin page: wp-scrive
  • Plugin version: 1.2.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.9
  • WordPress version: 5.9.2
  • First release: Jan 31, 2022
  • Latest release: Mar 10, 2022
  • Number of updates: 23
  • Update frequency: every 7.7 days
  • Top authors: webbstart (73.91%)jamieblomerus (30.43%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 191 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.43MB] [CPU: ▼287.30ms] Passed 4 tests

An overview of server-side resources used by WP Scrive by Webbstart
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.90 ▲0.3855.26 ▲7.07
Dashboard /wp-admin3.91 ▲0.5037.08 ▲3.16
Posts /wp-admin/edit.php4.14 ▲0.5041.93 ▲5.76
Add New Post /wp-admin/post-new.php7.38 ▲0.4194.93 ▼1,161.60
Media Library /wp-admin/upload.php3.70 ▲0.4126.20 ▲3.48
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius4.0725.97

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 167 new files
Database: no new tables, 4 new options
New WordPress options
fs_accounts
fs_gdpr
fs_active_plugins
fs_debug_mode

Browser metrics Passed 4 tests

Checking browser requirements for WP Scrive by Webbstart
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,857 ▲10315.94 ▲0.575.87 ▲0.423.01 ▲0.46
Dashboard /wp-admin2,954 ▲936.16 ▲0.11118.22 ▼12.25169.54 ▲10.74
Posts /wp-admin/edit.php2,750 ▲563.24 ▼0.0062.11 ▼1.07149.59 ▲11.93
Add New Post /wp-admin/post-new.php1,782 ▲12221.34 ▲3.73425.43 ▲14.09160.31 ▲7.52
Media Library /wp-admin/upload.php1,757 ▲595.53 ▲0.01149.88 ▲1.77206.74 ▲22.02
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius1,4502.7454.80109.12

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/wp-scrive/freemius/includes/class-freemius.php+8575
    Undefined property: stdClass::$plugins
  • This plugin does not fully uninstall, leaving 4 options in the database
    • fs_active_plugins
    • fs_debug_mode
    • fs_gdpr
    • fs_accounts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: scrive, webbstart, scrive integration

wp-scrive/wp-scrive.php 92% from 13 tests

The principal PHP file in "WP Scrive by Webbstart" v. 1.2.3 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin30,824 lines of code in 126 files:
LanguageFilesBlank linesComment linesLines of code
PHP1127,30916,28830,616
JavaScript33459194
CSS110014

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
It is recommended to fix the following
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity81.76
▷ Minimum class complexity1.00
▷ Maximum class complexity2,910.00
Average method complexity4.58
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes50
▷ Abstract classes24.00%
▷ Concrete classes4896.00%
▷ Final classes00.00%
Methods1,159
▷ Static methods17415.01%
▷ Public methods81970.66%
▷ Protected methods151.29%
▷ Private methods32528.04%
Functions94
▷ Named functions94100.00%
▷ Anonymous functions00.00%
Constants125
▷ Global constants10080.00%
▷ Class constants2520.00%
▷ Public constants25100.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
No PNG files were detected