83% wp-jqpuzzle

Code Review | WP-jqPuzzle

WordPress plugin WP-jqPuzzle scored83%from 54 tests.

About plugin

  • Plugin page: wp-jqpuzzle
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-2.9.1
  • WordPress version: 6.3.1
  • First release: Dec 14, 2009
  • Latest release: Jun 12, 2010
  • Number of updates: 22
  • Update frequency: every 33.9 days
  • Top authors: jtoth (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,146 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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by WP-jqPuzzle
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.41 ▼0.43
Dashboard /wp-admin3.31 ▲0.0043.19 ▼12.08
Posts /wp-admin/edit.php3.36 ▲0.0044.10 ▼2.09
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.82 ▼34.00
Media Library /wp-admin/upload.php3.23 ▲0.0034.55 ▲2.05

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP-jqPuzzle
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,917 ▲18213.58 ▼0.957.25 ▲5.2240.81 ▼3.37
Dashboard /wp-admin2,206 ▲245.85 ▼0.01100.35 ▼3.9541.54 ▼0.95
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0836.64 ▼4.6731.61 ▼5.24
Add New Post /wp-admin/post-new.php1,528 ▲823.26 ▲0.02669.28 ▲9.0052.80 ▼0.70
Media Library /wp-admin/upload.php1,388 ▲64.25 ▲0.04104.64 ▲11.4344.85 ▲2.70

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 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 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 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 load_plugin_textdomain() in wp-content/plugins/wp-jqpuzzle/wp-jqpuzzle.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (Image wait for mixing), #2 (Image mixing), #3 (Image as sliding-puzzle), #4 (Done good job: Winner-message)
You can take inspiration from this readme.txt

wp-jqpuzzle/wp-jqpuzzle.php 92% from 13 tests

"WP-jqPuzzle" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 238 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected875 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2172230619
PO File32748105
CSS1173093
PHP1121358

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
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 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.70MB with 0.50MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png171.07KB51.67KB▼ 69.80%
screenshot-4.png123.55KB38.73KB▼ 68.65%
screenshot-3.png215.97KB57.78KB▼ 73.25%
screenshot-1.png207.06KB55.57KB▼ 73.16%