84% processingjs-code-directly

Code Review | Processing code directly

WordPress plugin Processing code directly scored84%from 54 tests.

About plugin

  • Plugin page: processingjs-code...
  • Plugin version: 1.4.8.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 5, 2014
  • Latest release: May 23, 2014
  • Number of updates: 43
  • Update frequency: every 1.1 days
  • Top authors: jaiunblog (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

30+ active /1,644 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 gracefully, with no errors

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

Analyzing server-side resources used by Processing code directly
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.12 ▼0.95
Dashboard /wp-admin3.32 ▼0.0350.06 ▼16.20
Posts /wp-admin/edit.php3.37 ▲0.0155.37 ▲0.89
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.44 ▼29.59
Media Library /wp-admin/upload.php3.24 ▲0.0130.50 ▼6.14

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Processing code directly
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲14913.80 ▼0.9312.41 ▲10.7738.78 ▼0.81
Dashboard /wp-admin2,198 ▲185.57 ▼0.0684.79 ▼3.4137.70 ▼7.80
Posts /wp-admin/edit.php2,103 ▲32.00 ▲0.0338.70 ▼3.2635.63 ▼4.40
Add New Post /wp-admin/post-new.php1,529 ▲322.97 ▼0.17620.38 ▼74.2053.87 ▼2.12
Media Library /wp-admin/upload.php1,400 ▼34.22 ▲0.12103.35 ▲3.6542.50 ▼4.26

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

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
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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/processingjs-code-directly/p5js.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Donate link: Please fix this invalid url: ""
The official readme.txt is a good inspiration

processingjs-code-directly/p5js.php 92% from 13 tests

The main file in "Processing code directly" v. 1.4.8.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("processingjs-code-directly.php" instead of "p5js.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin669 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript334470
CSS1297154
PHP1152545

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions5
▷ Named functions5100.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
PNG images were not found in this plugin