84% puzzleme

Code Review | PuzzleMe for WordPress

WordPress plugin PuzzleMe for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: puzzleme
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.2.2
  • WordPress version: 6.3.1
  • First release: Jan 11, 2022
  • Latest release: Jun 28, 2023
  • Number of updates: 7
  • Update frequency: every 76.9 days
  • Top authors: amuselabs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /2,621 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.01MB] [CPU: ▼7.24ms] Passed 4 tests

This is a short check of server-side resources used by PuzzleMe for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.33 ▼6.81
Dashboard /wp-admin3.32 ▲0.0251.00 ▼5.13
Posts /wp-admin/edit.php3.37 ▲0.0151.81 ▼1.72
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.29 ▼15.29
Media Library /wp-admin/upload.php3.24 ▲0.0139.95 ▲5.28

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

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

Browser metrics Passed 4 tests

PuzzleMe for WordPress: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲1.511.62 ▼5.6141.03 ▼2.80
Dashboard /wp-admin2,198 ▲245.61 ▲0.0190.57 ▲0.8338.51 ▼1.14
Posts /wp-admin/edit.php2,097 ▼31.97 ▼0.0138.23 ▲1.3134.87 ▲0.19
Add New Post /wp-admin/post-new.php1,528 ▼923.51 ▲5.36635.56 ▲10.5751.92 ▼24.87
Media Library /wp-admin/upload.php1,397 ▼34.22 ▲0.0198.72 ▼11.0442.94 ▼1.14

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/puzzleme/puzzleme.php:73

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can take inspiration from this readme.txt

puzzleme/puzzleme.php Passed 13 tests

The main file in "PuzzleMe for WordPress" v. 1.1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
63 characters long description:
Embed PuzzleMe puzzles in your posts and pages with a shortcode

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected55 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP101955

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.58
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%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected