78% morepuzzles

Code Review | MorePuzzles

WordPress plugin MorePuzzles scored78%from 54 tests.

About plugin

  • Plugin page: morepuzzles
  • Plugin version: 1.1.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.7.2
  • WordPress version: 6.3.1
  • First release: Jul 31, 2020
  • Latest release: Mar 25, 2022
  • Number of updates: 19
  • Update frequency: every 31.7 days
  • Top authors: berriesandco (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /1,880 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.24ms] Passed 4 tests

A check of server-side resources used by MorePuzzles
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0254.61 ▲3.81
Dashboard /wp-admin3.32 ▲0.0251.40 ▼3.91
Posts /wp-admin/edit.php3.37 ▲0.0250.13 ▼6.62
Add New Post /wp-admin/post-new.php5.92 ▲0.0491.49 ▼10.35
Media Library /wp-admin/upload.php3.24 ▲0.0239.91 ▼8.06

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for MorePuzzles
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7713.30 ▼0.842.44 ▲0.6254.29 ▲3.23
Dashboard /wp-admin2,217 ▲325.04 ▼0.78116.08 ▼1.8576.53 ▲27.90
Posts /wp-admin/edit.php2,115 ▲292.42 ▲0.4347.02 ▲5.8930.45 ▼9.85
Add New Post /wp-admin/post-new.php1,536 ▲323.43 ▲2.21708.76 ▼20.6232.32 ▼30.90
Media Library /wp-admin/upload.php1,472 ▲874.40 ▲0.2399.17 ▼25.3475.66 ▲16.71

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 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 0% 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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/morepuzzles/uninstall.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/morepuzzles/templates/admin.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/morepuzzles/morepuzzles.php:47

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed: You can take inspiration from this readme.txt

morepuzzles/morepuzzles.php Passed 13 tests

The main PHP script in "MorePuzzles" version 1.1.4 is automatically included on every request by WordPress
56 characters long description:
This plugin is designed for several types of crosswords.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected611 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
SVG100221
PHP63034165
CSS2246139
JavaScript213686

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.09
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
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods880.00%
▷ Protected methods220.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

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/screenshot-1.png79.80KB30.77KB▼ 61.44%
assets/img/logo.png4.21KB0.26KB▼ 93.88%
templates/img/copy.png0.64KB0.70KB0.00%
templates/img/paste.png0.68KB0.70KB0.00%