84% jason-ld-organization

Code Review | Jason LD Organization

WordPress plugin Jason LD Organization scored84%from 54 tests.

About plugin

  • Plugin page: jason-ld-organiza...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.4
  • WordPress version: 6.3.1
  • First release: Jan 4, 2016
  • Latest release: Jan 5, 2016
  • Number of updates: 7
  • Update frequency: every 1.1 days
  • Top authors: pivari (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /716 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
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Jason LD Organization
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0725.36 ▼20.16
Dashboard /wp-admin3.31 ▲0.0146.92 ▼8.14
Posts /wp-admin/edit.php3.36 ▲0.0146.95 ▼5.65
Add New Post /wp-admin/post-new.php5.89 ▲0.01117.91 ▲19.02
Media Library /wp-admin/upload.php3.24 ▲0.0140.44 ▲4.20

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Jason LD Organization: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,861 ▲7513.21 ▼1.161.88 ▼0.0942.84 ▼5.09
Dashboard /wp-admin2,237 ▲345.90 ▼0.02107.27 ▼8.8837.32 ▼5.90
Posts /wp-admin/edit.php2,098 ▼22.01 ▼0.0536.68 ▲0.8433.79 ▲0.29
Add New Post /wp-admin/post-new.php1,563 ▲3723.33 ▲5.72672.51 ▼33.8557.21 ▲3.02
Media Library /wp-admin/upload.php1,419 ▲194.20 ▼0.05109.12 ▼7.1648.40 ▲0.16

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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 fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jason-ld-organization/jason-ld-organization.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/jason-ld-organization/jlo-options.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (Jason LD Organization Domation settings panel.)
Please take inspiration from this readme.txt

jason-ld-organization/jason-ld-organization.php Passed 13 tests

The main file in "Jason LD Organization" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
54 characters long description:
Plugin to add Jason LD Organization code on your home.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected110 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP31414110

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
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 functions3100.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png30.15KB10.72KB▼ 64.44%