84% ev-crosswords

Code Review | EV Crosswords

WordPress plugin EV Crosswords scored 84% from 54 tests.

About plugin

  • Plugin page: ev-crosswords
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 11, 2022
  • Latest release: Jan 14, 2023
  • Number of updates: 15
  • Update frequency: every 4.3 days
  • Top authors: entreveloper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 333 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.11MB] [CPU: ▲2.53ms] Passed 4 tests

Analyzing server-side resources used by EV Crosswords
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1243.57 ▲5.69
Dashboard /wp-admin3.42 ▲0.1153.90 ▲8.16
Posts /wp-admin/edit.php3.51 ▲0.1653.34 ▲5.10
Add New Post /wp-admin/post-new.php6.00 ▲0.1191.47 ▼8.82
Media Library /wp-admin/upload.php3.34 ▲0.1143.13 ▲12.08
Add New /wp-admin/post-new.php?post_type=ev_crossword2.8315.31
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=ev_crossword3.3343.62
crosswords /wp-admin/edit.php?post_type=ev_crossword3.3743.76

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

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

Browser metrics Passed 4 tests

Checking browser requirements for EV Crosswords
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,877 ▲12013.14 ▼1.232.01 ▼0.0545.33 ▼4.96
Dashboard /wp-admin2,250 ▲594.85 ▼0.04140.89 ▲35.5853.16 ▲8.74
Posts /wp-admin/edit.php2,136 ▲472.00 ▼0.0135.80 ▲0.9033.92 ▼1.18
Add New Post /wp-admin/post-new.php1,572 ▲3623.35 ▲0.12647.97 ▲2.6452.37 ▼5.06
Media Library /wp-admin/upload.php1,435 ▲444.22 ▲0.0693.53 ▼6.8143.65 ▲1.11
Add New /wp-admin/post-new.php?post_type=ev_crossword8922.0322.8127.05
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=ev_crossword1,4932.1427.0932.36
crosswords /wp-admin/edit.php?post_type=ev_crossword1,1441.9330.5730.68

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • category_children
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses_data() in wp-content/plugins/ev-crosswords/ev-crosswords.php:33
    • > PHP Warning
      Use of undefined constant TEMPLATEPATH - assumed 'TEMPLATEPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ev-crosswords/views/crossword/single-crossword.php on line 34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/ev-crosswords/views/newcw.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_block_template_html() in wp-content/plugins/ev-crosswords/views/crossword/single-block-crossword.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ev-crosswords/views/crossword/single-crossword.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: wordpress, crosswords, word games, entertainment

ev-crosswords/ev-crosswords.php Passed 13 tests

"EV Crosswords" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
90 characters long description:
Crossword Plugin for anyone to easily create and add Crosswords to their Wordpress website

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,170 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2747476
PHP54250466
XML200201
HTML124015
CSS20612

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16.25%
▷ Public methods1487.50%
▷ Protected methods00.00%
▷ Private methods212.50%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants360.00%
▷ Class constants240.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin