90% jigsaw

Code Review | Jigsaw

WordPress plugin Jigsaw scored90%from 54 tests.

About plugin

  • Plugin page: jigsaw
  • Plugin version: 0.9.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.3
  • WordPress version: 6.3.1
  • First release: Oct 26, 2014
  • Latest release: Feb 8, 2020
  • Number of updates: 23
  • Update frequency: every 84.3 days
  • Top authors: jarednova (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

200+ active /12,613 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

An overview of server-side resources used by Jigsaw
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0032.97 ▼5.16
Dashboard /wp-admin3.31 ▲0.0044.11 ▼0.89
Posts /wp-admin/edit.php3.36 ▲0.0045.86 ▼3.46
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.14 ▼17.89
Media Library /wp-admin/upload.php3.23 ▲0.0037.37 ▲3.48

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Jigsaw
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.25 ▼1.111.91 ▲0.1340.07 ▼7.32
Dashboard /wp-admin2,203 ▲155.81 ▲0.9098.53 ▼8.2438.51 ▼0.41
Posts /wp-admin/edit.php2,086 ▼02.02 ▼0.0035.90 ▼2.2033.10 ▼0.76
Add New Post /wp-admin/post-new.php1,514 ▼2217.53 ▼5.77658.75 ▲17.0652.56 ▼25.54
Media Library /wp-admin/upload.php1,391 ▲64.32 ▲0.10108.84 ▲9.3348.03 ▲4.14

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: admin, configuration

jigsaw/jigsaw.php Passed 13 tests

"Jigsaw" version 0.9.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
54 characters long description:
Simple ways to make admin customizations for WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected568 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP36225434
Markdown137096
JSON10038

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity27.00
▷ Minimum class complexity2.00
▷ Maximum class complexity50.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods28
▷ Static methods2692.86%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions00.00%
▷ Anonymous functions22100.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
No PNG images were found in this plugin