90% jigsaw-planet

Code Review | Jigsaw Planet

WordPress plugin Jigsaw Planet scored90%from 54 tests.

About plugin

  • Plugin page: jigsaw-planet
  • Plugin version: 1.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9
  • WordPress version: 6.3.1
  • First release: Apr 18, 2015
  • Latest release: Feb 3, 2018
  • Number of updates: 21
  • Update frequency: every 48.7 days
  • Top authors: ramiy (95.24%)jigsawplanet (9.52%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active /7,973 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.01MB] [CPU: ▼3.31ms] Passed 4 tests

An overview of server-side resources used by Jigsaw Planet
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.23 ▲1.70
Dashboard /wp-admin3.32 ▲0.0148.67 ▲1.95
Posts /wp-admin/edit.php3.37 ▲0.0144.23 ▼1.95
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.49 ▼12.55
Media Library /wp-admin/upload.php3.24 ▲0.0135.11 ▼0.45

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Jigsaw Planet
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.48 ▲0.051.79 ▲0.0143.48 ▼0.79
Dashboard /wp-admin2,206 ▲155.90 ▲0.79100.92 ▼4.4040.48 ▼1.17
Posts /wp-admin/edit.php2,086 ▼32.00 ▲0.0135.77 ▼5.2432.61 ▼4.94
Add New Post /wp-admin/post-new.php1,534 ▲1022.80 ▼0.24664.55 ▲45.4155.60 ▼8.33
Media Library /wp-admin/upload.php1,388 ▼04.23 ▼0.0196.38 ▲1.9244.31 ▲2.42

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

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: puzzle, planet, jigsaw planet, embed, puzzles...

jigsaw-planet/jigsaw-planet.php Passed 13 tests

This is the main PHP file of "Jigsaw Planet" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
61 characters long description:
Embed puzzles from JigsawPlanet.com into your WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin31 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4214931

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.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

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.29MB with 0.19MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png28.09KB9.29KB▼ 66.91%
screenshot-2.png265.09KB88.18KB▼ 66.74%