83% interactive-cursor

Code Review | Interactive Cursor

WordPress plugin Interactive Cursor scored83%from 54 tests.

About plugin

  • Plugin page: interactive-cursor
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 16, 2022
  • Latest release: Mar 20, 2022
  • Number of updates: 6
  • Update frequency: every 0.7 days
  • Top authors: ashrafnurency (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /573 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
This plugin's installer ran successfully

Server metrics [RAM: ▲1.36MB] [CPU: ▲4.90ms] Passed 4 tests

An overview of server-side resources used by Interactive Cursor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.89 ▲1.4361.30 ▲18.78
Dashboard /wp-admin4.70 ▲1.3658.31 ▼9.77
Posts /wp-admin/edit.php4.75 ▲1.4060.91 ▲11.52
Add New Post /wp-admin/post-new.php7.22 ▲1.34109.00 ▲5.21
Media Library /wp-admin/upload.php4.56 ▲1.3449.84 ▲12.62

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 215 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
nurency_cursor
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Interactive Cursor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲15513.65 ▼0.738.50 ▲6.7238.73 ▼3.58
Dashboard /wp-admin2,221 ▲185.83 ▲0.95102.27 ▼14.4242.64 ▼1.11
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0136.54 ▼0.5233.43 ▼1.06
Add New Post /wp-admin/post-new.php1,554 ▲1918.46 ▼4.63634.01 ▼27.6559.40 ▲3.53
Media Library /wp-admin/upload.php1,403 ▲34.25 ▲0.0698.74 ▼15.1345.11 ▼4.47

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • nurency_cursor
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/interactive-cursor/style/style_13/html.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/interactive-cursor/style/style_10/html.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/interactive-cursor/style/style_11/html.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/interactive-cursor/style/style_7/html.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/interactive-cursor/style/style_1/html.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/interactive-cursor/style/style_9/html.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/interactive-cursor/style/style_8/html.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/interactive-cursor/style/style_3/html.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/interactive-cursor/style/style_4/html.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/interactive-cursor/style/style_6/html.php:6

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Requires at least: Version format is invalid
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4 in interactive-cursor/assets to your readme.txt
The official readme.txt is a good inspiration

interactive-cursor/index.php 92% from 13 tests

"Interactive Cursor" version 1.0.0'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:
  • Main file name: The principal plugin file should be the same as the plugin slug ("interactive-cursor.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected39,680 lines of code in 178 files:
LanguageFilesBlank linesComment linesLines of code
PHP1013,3921,43419,361
PO File203,0373,4146,180
Sass1595434,811
CSS208514894,794
JavaScript201,3613614,518
SVG20016

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity25.31
▷ Minimum class complexity1.00
▷ Maximum class complexity152.00
Average method complexity6.73
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes61
▷ Abstract classes23.28%
▷ Concrete classes5996.72%
▷ Final classes00.00%
Methods259
▷ Static methods4115.83%
▷ Public methods25698.84%
▷ Protected methods00.00%
▷ Private methods31.16%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/framework/assets/images/checkerboard.png2.29KB2.54KB0.00%