78% press75-long-form-storybuilder

Code Review | Press75 Long Form Storybuilder

WordPress plugin Press75 Long Form Storybuilder scored78%from 54 tests.

About plugin

  • Plugin page: press75-long-form...
  • Plugin version: 0.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.1
  • WordPress version: 6.3.1
  • First release: Feb 20, 2015
  • Latest release: Feb 28, 2015
  • Number of updates: 10
  • Update frequency: every 2.9 days
  • Top authors: press75 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /4,214 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.34MB] [CPU: ▼4.71ms] Passed 4 tests

An overview of server-side resources used by Press75 Long Form Storybuilder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.3237.29 ▼0.38
Dashboard /wp-admin3.71 ▲0.3648.59 ▼9.40
Posts /wp-admin/edit.php3.76 ▲0.4044.96 ▲1.52
Add New Post /wp-admin/post-new.php6.25 ▲0.3681.20 ▼10.56
Media Library /wp-admin/upload.php3.57 ▲0.3436.80 ▲4.76

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 64 new files
Database: no new tables, 14 new options
New WordPress options
widget_lfc-callout-module
widget_lfc-content-three-column-module
widget_lfc-content-module
widget_theysaidso_widget
theysaidso_admin_options
widget_lfc-nav-module
widget_lfc-full-feature-module
widget_lfc-header-module
can_compress_scripts
widget_recent-comments
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Press75 Long Form Storybuilder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,618 ▼15314.71 ▲0.421.16 ▼0.6343.41 ▲2.90
Dashboard /wp-admin2,195 ▲215.62 ▼0.0187.09 ▲1.5138.85 ▼0.84
Posts /wp-admin/edit.php2,097 ▼32.03 ▲0.0833.80 ▼1.4734.27 ▼2.90
Add New Post /wp-admin/post-new.php6,223 ▲4,69726.08 ▲2.97879.85 ▲192.0853.14 ▼2.62
Media Library /wp-admin/upload.php1,397 ▼34.19 ▼0.0495.49 ▼0.6541.09 ▼2.17

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 14 options in the database
    • widget_lfc-nav-module
    • widget_lfc-content-two-column-module
    • widget_lfc-full-feature-module
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_lfc-section-heading-module
    • widget_theysaidso_widget
    • widget_lfc-content-module
    • widget_lfc-content-three-column-module
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 9× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/press75-long-form-storybuilder/views/three_column_content.php
    • > /wp-content/plugins/press75-long-form-storybuilder/views/nav.php
    • > /wp-content/plugins/press75-long-form-storybuilder/views/callout.php
    • > /wp-content/plugins/press75-long-form-storybuilder/views/section_heading.php
    • > /wp-content/plugins/press75-long-form-storybuilder/views/two_column_content.php
    • > /wp-content/plugins/press75-long-form-storybuilder/views/header.php
    • > /wp-content/plugins/press75-long-form-storybuilder/views/content.php
    • > /wp-content/plugins/press75-long-form-storybuilder/views/full_feature.php
    • > /wp-content/plugins/press75-long-form-storybuilder/views/image_carousel.php
  • 55× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: title in wp-content/plugins/press75-long-form-storybuilder/views/two_column_content.php on line 1
    • > PHP Notice
      Undefined variable: text_alignment in wp-content/plugins/press75-long-form-storybuilder/views/full_feature.php on line 2
    • > PHP Notice
      Undefined variable: menu_type in wp-content/plugins/press75-long-form-storybuilder/views/nav.php on line 6
    • > PHP Notice
      Undefined variable: image in wp-content/plugins/press75-long-form-storybuilder/views/nav.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/press75-long-form-storybuilder/inc/image-field.php:80
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/press75-long-form-storybuilder/widgets/widget-content.php:6
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/press75-long-form-storybuilder/views/image_carousel.php on line 4
    • > PHP Notice
      Undefined variable: second_column in wp-content/plugins/press75-long-form-storybuilder/views/two_column_content.php on line 9
    • > PHP Notice
      Undefined variable: first_column in wp-content/plugins/press75-long-form-storybuilder/views/three_column_content.php on line 6
    • > PHP Notice
      Undefined variable: widget_id in wp-content/plugins/press75-long-form-storybuilder/views/section_heading.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Create media-rich Long Form Stories), #2 (Add eye-catching full-width images with dynamic headings), #3 (Use the familiar Customizer interface to quickly and easily set up your stories), #4 (Utilize the same editors you've been using to create Posts and Pages)
The official readme.txt is a good inspiration

press75-long-form-storybuilder/long-format-storybuilder.php 92% from 13 tests

"Press75 Long Form Storybuilder" version 0.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("press75-long-form-storybuilder.php" instead of "long-format-storybuilder.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected6,236 lines of code in 53 files:
LanguageFilesBlank linesComment linesLines of code
CSS65791212,511
PHP263955941,855
JavaScript8257266957
SVG13413913

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity12.47
▷ Minimum class complexity2.00
▷ Maximum class complexity24.00
Average method complexity3.26
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods76
▷ Static methods67.89%
▷ Public methods76100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.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
5 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/step02.png54.82KB21.24KB▼ 61.25%
assets/images/chosen-sprite@2x.png0.85KB0.83KB▼ 3.10%
assets/images/step01.png13.79KB6.76KB▼ 50.96%
assets/images/chosen-sprite.png0.63KB0.88KB0.00%
assets/images/step03.png21.13KB10.07KB▼ 52.35%