78% journity

Code Review | Journity Installer

WordPress plugin Journity Installer scored78%from 54 tests.

About plugin

  • Plugin page: journity
  • Plugin version: 1.0.12
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 26, 2018
  • Latest release: Mar 20, 2023
  • Number of updates: 26
  • Update frequency: every 70.0 days
  • Top authors: iandbanks (69.23%)twykr (34.62%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,115 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.82ms] Passed 4 tests

Analyzing server-side resources used by Journity Installer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.69 ▲1.21
Dashboard /wp-admin3.33 ▼0.0146.33 ▼14.91
Posts /wp-admin/edit.php3.38 ▲0.0347.33 ▲2.62
Add New Post /wp-admin/post-new.php5.91 ▲0.0392.04 ▲3.80
Media Library /wp-admin/upload.php3.25 ▲0.0332.73 ▼0.18
Journity /wp-admin/options-general.php?page=journity3.1929.81

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Journity Installer: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲5213.14 ▼1.691.88 ▼0.1137.08 ▼7.13
Dashboard /wp-admin2,224 ▲364.83 ▼0.1097.50 ▼22.0538.98 ▼2.98
Posts /wp-admin/edit.php2,104 ▲151.98 ▼0.0540.59 ▲3.9236.57 ▲3.42
Add New Post /wp-admin/post-new.php1,556 ▲2817.92 ▼0.55597.08 ▼36.4851.21 ▼4.72
Media Library /wp-admin/upload.php1,403 ▲154.24 ▲0.0395.34 ▼3.7041.60 ▼2.45
Journity /wp-admin/options-general.php?page=journity8752.0424.0128.31

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 did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=journity
    • > Notice in wp-content/plugins/journity/journity.php+182
    Trying to access array offset on value of type bool

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/journity/journity.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Requires php: Version not formatted correctly
  • Screenshots: Please a description for screenshot #0 in journity/assets to your readme.txt
You can look at the official readme.txt

journity/journity.php 92% from 13 tests

"Journity Installer" version 1.0.12's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 159 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected151 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16577150
SVG1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected