90% just-output

Code Review | Just Output

WordPress plugin Just Output scored90%from 54 tests.

About plugin

  • Plugin page: just-output
  • Plugin version: 0.9.6
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.9-6.3
  • WordPress version: 6.3.1
  • First release: Jan 26, 2021
  • Latest release: Jul 22, 2023
  • Number of updates: 16
  • Update frequency: every 56.8 days
  • Top authors: back2nature (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,446 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼9.04ms] Passed 4 tests

Server-side resources used by Just Output
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.20 ▼4.41
Dashboard /wp-admin3.31 ▲0.0049.36 ▼4.95
Posts /wp-admin/edit.php3.36 ▲0.0046.87 ▼12.08
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.14 ▼14.71
Media Library /wp-admin/upload.php3.23 ▲0.0038.71 ▲0.67

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Just Output
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.28 ▼0.071.70 ▼0.3144.06 ▲1.43
Dashboard /wp-admin2,195 ▲155.55 ▼0.1199.31 ▲6.2843.05 ▼2.17
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.1734.42 ▼0.7334.82 ▼5.20
Add New Post /wp-admin/post-new.php1,529 ▲323.03 ▼0.20683.25 ▲25.8858.77 ▼13.82
Media Library /wp-admin/upload.php1,403 ▲34.23 ▼0.05100.97 ▼3.5643.20 ▼3.53

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

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)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: delete, br, automatically, auto, insert...

just-output/just-output.php Passed 13 tests

The main PHP file in "Just Output" ver. 0.9.6 adds more information about the plugin and also serves as the entry point for this plugin
79 characters long description:
WordPress automatically inserts p and br tags, but disables them in shortcodes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected87 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3332547
PO File18940

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
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%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants4
▷ Global constants4100.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