78% storyform

Code Review | Storyform

WordPress plugin Storyform scored78%from 54 tests.

About plugin

  • Plugin page: storyform
  • Plugin version: 0.6.14
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.1-4.5
  • WordPress version: 6.3.1
  • First release: Sep 15, 2014
  • Latest release: May 26, 2016
  • Number of updates: 78
  • Update frequency: every 8.0 days
  • Top authors: RylanH (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

200+ active /20,994 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
Install script ran successfully

Server metrics [RAM: ▲0.51MB] [CPU: ▲1.63ms] Passed 4 tests

A check of server-side resources used by Storyform
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.97 ▲0.5141.23 ▲0.53
Dashboard /wp-admin3.85 ▲0.5550.89 ▲3.08
Posts /wp-admin/edit.php3.90 ▲0.5552.29 ▼3.18
Add New Post /wp-admin/post-new.php6.39 ▲0.51101.21 ▲8.18
Media Library /wp-admin/upload.php3.71 ▲0.4842.19 ▲6.10
Add new /wp-admin/admin.php?page=storyform-editor3.7140.10
Settings /wp-admin/admin.php?page=storyform-settings3.6838.86
Publish post /wp-admin/admin.php?page=storyform-publish-post3.3620.73

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
storyform_version
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
storyform_site_registered
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Storyform
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲10913.58 ▼0.721.70 ▼0.8937.68 ▼12.05
Dashboard /wp-admin2,264 ▲765.85 ▼0.0099.59 ▼9.2538.73 ▼7.67
Posts /wp-admin/edit.php2,144 ▲582.01 ▲0.0140.85 ▲4.4434.11 ▼8.00
Add New Post /wp-admin/post-new.php6,255 ▲4,72225.91 ▲2.53866.07 ▲191.6467.66 ▲15.29
Media Library /wp-admin/upload.php1,448 ▲634.26 ▼0.0499.46 ▼13.2947.36 ▲0.64
Add new /wp-admin/admin.php?page=storyform-editor1,0013.5643.9319.73
Settings /wp-admin/admin.php?page=storyform-settings1,8015.0781.5547.05
Publish post /wp-admin/admin.php?page=storyform-publish-post90.440.072.15

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 8 options in the database
    • storyform_site_registered
    • storyform_version
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=storyform-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/admin.php?page=storyform-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
Almost there! Just fix the following items
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/storyform/theme/single-storyform.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/storyform/media/storyform-media.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Storyform_Options' not found in wp-content/plugins/storyform/theme/navbar.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/storyform/media/storyform-media.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function post_password_required() in wp-content/plugins/storyform/theme/comments.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: These screenshots lack descriptions #2, #3 in storyform/assets to your readme.txt
You can take inspiration from this readme.txt

storyform/storyform.php Passed 13 tests

The main PHP script in "Storyform" version 0.6.14 is automatically included on every request by WordPress
87 characters long description:
Plugin to enable Storyform on select posts. Works with both SEO and non-SEO permalinks.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin4,953 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP125496092,471
JavaScript33727882,273
CSS3311183
PO File14626

PHP code Passed 2 tests

Analyzing 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.42
Average class complexity36.57
▷ Minimum class complexity6.00
▷ Maximum class complexity63.00
Average method complexity2.95
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods128
▷ Static methods1914.84%
▷ Public methods12093.75%
▷ Protected methods86.25%
▷ Private methods00.00%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 images were found in this plugin