73% justrows-free

Code Review | JustRows free

WordPress plugin JustRows free scored73%from 54 tests.

About plugin

  • Plugin page: justrows-free
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2
  • WordPress version: 6.3.1
  • First release: Apr 29, 2015
  • Latest release: May 21, 2015
  • Number of updates: 10
  • Update frequency: every 2.4 days
  • Top authors: canaveralstudio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,036 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.72ms] Passed 4 tests

An overview of server-side resources used by JustRows free
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.09 ▲0.40
Dashboard /wp-admin3.33 ▲0.0347.01 ▼3.84
Posts /wp-admin/edit.php3.38 ▲0.0344.09 ▼0.14
Add New Post /wp-admin/post-new.php5.93 ▲0.0584.55 ▼15.30
Media Library /wp-admin/upload.php3.25 ▲0.0336.30 ▲1.29
New configuration /wp-admin/admin.php?page=justrows-add3.3131.98
JustRows Free /wp-admin/admin.php?page=justrows-index3.2834.39

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_justrowswidget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for JustRows free
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,874 ▲11713.30 ▼1.081.72 ▼0.4339.13 ▼7.82
Dashboard /wp-admin2,267 ▲824.94 ▼0.92106.17 ▲3.6240.59 ▼6.70
Posts /wp-admin/edit.php2,147 ▲552.05 ▲0.0537.33 ▼10.6731.41 ▼14.32
Add New Post /wp-admin/post-new.php1,540 ▲1223.63 ▲5.49670.58 ▲22.5146.70 ▼7.00
Media Library /wp-admin/upload.php1,446 ▲554.19 ▲0.0093.64 ▼7.8842.13 ▲0.92
New configuration /wp-admin/admin.php?page=justrows-add1,4272.2729.5831.58
JustRows Free /wp-admin/admin.php?page=justrows-index1,0802.5326.4042.38

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_justrowswidget
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 25% from 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 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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/justrows-free/includes/JustRowsWidget.php
  • 15× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/justrows-free/includes/admin/redirect.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/justrows-free/includes/admin/edit.php:10
    • > PHP Warning
      include_once(JUSTROWS_INCLUDE_PATHJustRowsConfiguration.php): failed to open stream: No such file or directory in wp-content/plugins/justrows-free/includes/JustRowsBackend.php on line 4
    • > PHP Warning
      include_once(JUSTROWS_INCLUDE_PATHJustRows.php): failed to open stream: No such file or directory in wp-content/plugins/justrows-free/includes/JustRowsBackend.php on line 3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/justrows-free/includes/admin/add.php on line 9
    • > PHP Warning
      Use of undefined constant JUSTROWS_INCLUDE_PATH - assumed 'JUSTROWS_INCLUDE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/justrows-free/includes/JustRowsBackend.php on line 3
    • > PHP Notice
      Undefined variable: pageData in wp-content/plugins/justrows-free/includes/admin/add.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/justrows-free/includes/admin/add.php:15
    • > PHP Notice
      Undefined variable: pageData in wp-content/plugins/justrows-free/includes/admin/index.php on line 3
    • > PHP Warning
      include_once(): Failed opening 'JUSTROWS_INCLUDE_PATHJustRowsConfiguration.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/justrows-free/includes/JustRowsBackend.php on line 4

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=justrows-index
    • > Network (severe)
    https://canaveralstudio.com/justrows-plugin.html - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

justrows-free/justrows-free.php Passed 13 tests

The primary PHP file in "JustRows free" version 0.2 is used by WordPress to initiate all plugin functionality
40 characters long description:
Used to create a justified image gallery

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,520 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP93521701,145
CSS88212300
JavaScript113675

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity22.75
▷ Minimum class complexity6.00
▷ Maximum class complexity47.00
Average method complexity3.81
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods31
▷ Static methods929.03%
▷ Public methods3096.77%
▷ Protected methods00.00%
▷ Private methods13.23%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants9
▷ Global constants777.78%
▷ Class constants222.22%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin