73% devarai-crosswords

Code Review | Devarai Crosswords

WordPress plugin Devarai Crosswords scored73%from 54 tests.

About plugin

  • Plugin page: devarai-crosswords
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 18, 2022
  • Latest release: Apr 12, 2022
  • Number of updates: 14
  • Update frequency: every 2.0 days
  • Top authors: devarai (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,065 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.92MB] [CPU: ▼54.99ms] Passed 4 tests

Server-side resources used by Devarai Crosswords
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.405.40 ▼35.52
Dashboard /wp-admin2.09 ▼1.225.93 ▼48.99
Posts /wp-admin/edit.php2.09 ▼1.276.84 ▼48.44
Add New Post /wp-admin/post-new.php2.09 ▼3.805.58 ▼87.00
Media Library /wp-admin/upload.php2.09 ▼1.145.13 ▼32.97

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Devarai Crosswords
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,892 ▲14613.42 ▼0.937.85 ▲5.9542.56 ▼0.83
Dashboard /wp-admin2,214 ▲345.58 ▼0.0888.03 ▼1.8439.79 ▼3.38
Posts /wp-admin/edit.php2,119 ▲191.99 ▼0.0240.85 ▼0.4535.00 ▼3.22
Add New Post /wp-admin/post-new.php1,540 ▲523.11 ▲4.92684.26 ▲21.1559.15 ▼15.09
Media Library /wp-admin/upload.php1,416 ▲134.22 ▲0.03104.54 ▲6.8843.23 ▼0.61

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_script_is was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

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 | 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 trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/devarai-crosswords/include/shortcodes/shorty.php:37

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)
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Requires at least: The plugin version is formatted incorrectly
The official readme.txt might help

devarai-crosswords/devarai-crosswords.php 77% from 13 tests

"Devarai Crosswords" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("/devarai*/")
  • Description: Keep the plugin description shorter than 140 characters (currently 217 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin115 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2252595
CSS145012
JavaScript14908

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected