84% crossword-compiler-puzzles

Code Review | Crossword Compiler Puzzles

WordPress plugin Crossword Compiler Puzzles scored84%from 54 tests.

About plugin

  • Plugin page: crossword-compile...
  • Plugin version: 4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Dec 17, 2013
  • Latest release: Aug 29, 2023
  • Number of updates: 22
  • Update frequency: every 161.0 days
  • Top authors: wordwebsoftware (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

500+ active /9,553 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.15MB] [CPU: ▼1.52ms] Passed 4 tests

This is a short check of server-side resources used by Crossword Compiler Puzzles
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1340.46 ▲0.60
Dashboard /wp-admin3.45 ▲0.1554.58 ▲1.36
Posts /wp-admin/edit.php3.56 ▲0.2160.35 ▲10.30
Add New Post /wp-admin/post-new.php7.10 ▲1.2197.65 ▼7.30
Media Library /wp-admin/upload.php3.35 ▲0.1235.80 ▼0.74

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 57 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Crossword Compiler Puzzles
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,040 ▲27915.16 ▲0.805.71 ▲4.0042.14 ▲0.04
Dashboard /wp-admin2,354 ▲1776.65 ▲0.99119.99 ▲32.0645.52 ▼1.50
Posts /wp-admin/edit.php2,296 ▲1963.38 ▲1.3671.74 ▲35.2835.34 ▼1.91
Add New Post /wp-admin/post-new.php6,226 ▲4,70019.27 ▼3.77954.70 ▲323.8838.03 ▼26.80
Media Library /wp-admin/upload.php1,425 ▲254.72 ▲0.51104.84 ▼1.7448.38 ▲2.02

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 did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/crossword-compiler-puzzles/modules/shortcodes.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: crossword, sudoku, puzzle, wordsearch

crossword-compiler-puzzles/wp-crossword.php 85% from 13 tests

The primary PHP file in "Crossword Compiler Puzzles" version 4.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("crossword-compiler-puzzles.php" instead of "wp-crossword.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 147 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin6,345 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
CSS680795,511
PHP712072579
JavaScript63230254
SVG1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
35 PNG files occupy 0.28MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
modules/css/images/ui-icons_888888_256x240.png6.83KB4.17KB▼ 38.92%
modules/css/glyphicons-halflings-white.png8.57KB9.20KB0.00%
modules/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.27KB0.18KB▼ 35.00%
modules/inc/CrosswordCompilerApp/CrosswordImages/revealword.png0.42KB0.33KB▼ 21.35%
modules/inc/CrosswordCompilerApp/CrosswordImages/pencil_2x.png2.32KB1.87KB▼ 19.54%