90% juniper-companion

Code Review | Juniper Companion

WordPress plugin Juniper Companion scored90%from 54 tests.

About plugin

  • Plugin page: juniper-companion
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5.2
  • WordPress version: 6.3.1
  • First release: Jul 5, 2016
  • Latest release: Jul 1, 2016
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: ThemeShift (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /3,569 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Juniper Companion
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.62 ▼7.39
Dashboard /wp-admin3.31 ▲0.0147.53 ▲0.19
Posts /wp-admin/edit.php3.36 ▲0.0147.70 ▲0.23
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.37 ▲5.81
Media Library /wp-admin/upload.php3.23 ▲0.0135.15 ▲2.04

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Juniper Companion
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6813.34 ▼1.031.62 ▼0.3242.46 ▲0.61
Dashboard /wp-admin2,220 ▲325.89 ▲0.01110.04 ▲1.4141.30 ▼2.37
Posts /wp-admin/edit.php2,106 ▲172.02 ▲0.0241.62 ▲5.8036.87 ▲5.53
Add New Post /wp-admin/post-new.php1,551 ▲3218.79 ▼4.41604.51 ▼81.4165.16 ▲6.95
Media Library /wp-admin/upload.php1,405 ▲234.17 ▼0.0296.69 ▼3.4143.06 ▲1.22

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 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)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

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: Please add at least on tag
You can look at the official readme.txt

juniper-companion/juniper-companion.php Passed 13 tests

The entry point to "Juniper Companion" version 1.0.0 is a PHP file that has certain tags in its header comment area
63 characters long description:
Add many additional features and settings to the Juniper theme.

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 plugin1,051 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3148681,051

PHP code Passed 2 tests

Analyzing 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.21
Average class complexity12.75
▷ Minimum class complexity4.00
▷ Maximum class complexity28.00
Average method complexity3.94
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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