73% write-jquery

Code Review | Write jQuery

WordPress plugin Write jQuery scored 73% from 54 tests.

About plugin

  • Plugin page: write-jquery
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 11, 2018
  • Latest release: Jul 24, 2023
  • Number of updates: 23
  • Update frequency: every 74.6 days
  • Top authors: tsutomufujii (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 934 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼1.93MB] [CPU: ▼56.26ms] Passed 4 tests

A check of server-side resources used by Write jQuery
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.92 ▼41.15
Dashboard /wp-admin2.08 ▼1.236.13 ▼55.69
Posts /wp-admin/edit.php2.08 ▼1.286.57 ▼45.29
Add New Post /wp-admin/post-new.php2.08 ▼3.816.54 ▼82.92
Media Library /wp-admin/upload.php2.08 ▼1.155.92 ▼35.20

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Write jQuery
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,896 ▲10713.92 ▼0.649.20 ▲7.3044.59 ▲5.22
Dashboard /wp-admin2,222 ▲165.88 ▲0.02102.84 ▼1.6678.10 ▲38.11
Posts /wp-admin/edit.php2,102 ▲132.01 ▲0.0236.90 ▼3.0436.10 ▲1.21
Add New Post /wp-admin/post-new.php1,548 ▲1523.19 ▼0.02695.17 ▲6.4950.90 ▼4.04
Media Library /wp-admin/upload.php1,395 ▲44.27 ▲0.0998.30 ▼5.8175.08 ▲29.18

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the write_jQuery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/write-jquery/plugin.php:11

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)
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Donate link: Invalid url: ""
  • Plugin Name: Please specify the plugin name on the first line ( === write-jquery === )
The official readme.txt might help

write-jquery/plugin.php 85% from 13 tests

This is the main PHP file of "Write jQuery" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("write-jquery.php" instead of "plugin.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 363 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected71 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP127869
JavaScript1322

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin