79% sj-cornerstone-addon

Code Review | SJ Cornerstone Addon

WordPress plugin SJ Cornerstone Addon scored79%from 54 tests.

About plugin

  • Plugin page: sj-cornerstone-addon
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.6
  • WordPress version: 6.3.1
  • First release: Aug 25, 2016
  • Latest release: Aug 27, 2016
  • Number of updates: 8
  • Update frequency: every 0.3 days
  • Top authors: sandesh055 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

600+ active /2,671 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.01MB] [CPU: ▼4.38ms] Passed 4 tests

This is a short check of server-side resources used by SJ Cornerstone Addon
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0246.50 ▲2.56
Dashboard /wp-admin3.32 ▲0.0148.13 ▼0.12
Posts /wp-admin/edit.php3.37 ▲0.0148.26 ▼4.56
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.87 ▼15.41
Media Library /wp-admin/upload.php3.24 ▲0.0139.01 ▲2.68

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for SJ Cornerstone Addon
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲514.22 ▼0.121.57 ▼0.3242.25 ▲0.48
Dashboard /wp-admin2,198 ▲215.64 ▲0.0586.43 ▼3.9036.86 ▼7.68
Posts /wp-admin/edit.php2,100 ▼31.99 ▲0.0338.77 ▼2.5835.52 ▼2.58
Add New Post /wp-admin/post-new.php1,526 ▼223.31 ▲0.23682.80 ▲43.9860.73 ▼3.39
Media Library /wp-admin/upload.php1,397 ▼34.12 ▼0.06106.56 ▲12.3145.01 ▲3.10

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/sj-cornerstone-addon/shortcodes/sjc-svg-separator/shortcode.php
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sj-cornerstone-addon/sj-cornerstone-addon.php:10
    • > PHP Notice
      Undefined variable: orientation in wp-content/plugins/sj-cornerstone-addon/shortcodes/sjc-svg-separator/shortcode.php on line 7
    • > PHP Notice
      Undefined variable: enable_top_separator in wp-content/plugins/sj-cornerstone-addon/shortcodes/sjc-svg-separator/shortcode.php on line 32
    • > PHP Notice
      Undefined variable: class in wp-content/plugins/sj-cornerstone-addon/shortcodes/sjc-svg-separator/shortcode.php on line 7
    • > PHP Notice
      Undefined variable: enable_bottom_separator in wp-content/plugins/sj-cornerstone-addon/shortcodes/sjc-svg-separator/shortcode.php on line 104
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/sj-cornerstone-addon/shortcodes/sjc-svg-separator/controls.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sj-cornerstone-addon/includes/register-elements.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: svg separator, cornerstone page builder, cornerstone addon, row separator

sj-cornerstone-addon/sj-cornerstone-addon.php Passed 13 tests

Analyzing the main PHP file in "SJ Cornerstone Addon" version 0.1.0
114 characters long description:
SJ Cornerstone addon pack which include Separator. SVG separator which will add fantastic style to row and column.

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
No dangerous file extensions were detected600 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP65636335
CSS140100243
SVG15022

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity1.67
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin