88% justuno

Code Review | Justuno

WordPress plugin Justuno scored 88% from 54 tests.

About plugin

  • Plugin page: justuno
  • Plugin version: 2.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.6
  • WordPress version: 5.9.2
  • First release: Jul 23, 2013
  • Latest release: Dec 16, 2021
  • Number of updates: 51
  • Update frequency: every 60.2 days
  • Top authors: justuno (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active / 22,584 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼295.09ms] Passed 4 tests

An overview of server-side resources used by Justuno
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2156.44 ▲5.60
Dashboard /wp-admin3.44 ▲0.0432.89 ▼2.59
Posts /wp-admin/edit.php3.67 ▲0.0336.77 ▼1.11
Add New Post /wp-admin/post-new.php6.91 ▼0.0694.33 ▼1,180.15
Media Library /wp-admin/upload.php3.32 ▲0.0325.79 ▲3.49
Justuno /wp-admin/options-general.php?page=justuno-settings-conf3.2722.13

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 2 new options
New WordPress options
justuno_woocommerce_token
justuno_api_key

Browser metrics Passed 4 tests

An overview of browser requirements for Justuno
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,802 ▲8015.93 ▲0.236.18 ▲0.542.65 ▲0.33
Dashboard /wp-admin2,899 ▲416.19 ▲0.04117.87 ▼24.82155.81 ▼3.54
Posts /wp-admin/edit.php2,679 ▼123.23 ▲0.0163.75 ▼2.74135.42 ▼21.67
Add New Post /wp-admin/post-new.php1,677 ▲1621.15 ▲4.57412.97 ▲3.82160.40 ▲6.29
Media Library /wp-admin/upload.php1,706 ▲85.53 ▲0.02154.34 ▲13.43195.15 ▲6.84
Justuno /wp-admin/options-general.php?page=justuno-settings-conf1,0262.6152.33126.37

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=justuno-settings-conf
    • > User deprecated in wp-includes/functions.php+5326
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=justuno-settings-conf
    • > User deprecated in wp-includes/functions.php+5326
    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
Please take a closer look at the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/justuno/includes/Frontend.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/justuno/includes/AdminPage.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/justuno/includes/AdminPage.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (200 tag instead of maximum 10)
You can look at the official readme.txt

justuno/justuno.php Passed 13 tests

The main PHP file in "Justuno" ver. 2.6 adds more information about the plugin and also serves as the entry point for this plugin
53 characters long description:
Grow your social audience, email subscribers & sales!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin914 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP78823883
JavaScript22031

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity38.50
▷ Minimum class complexity1.00
▷ Maximum class complexity112.00
Average method complexity6.56
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods2177.78%
▷ Protected methods00.00%
▷ Private methods622.22%
Functions15
▷ Named functions1386.67%
▷ Anonymous functions213.33%
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
There were not PNG files found in your plugin