10% tasti-rapidi

Code Review | Tasti Rapidi

WordPress plugin Tasti Rapidi scored10%from 54 tests.

About plugin

  • Plugin page: tasti-rapidi
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.6
  • WordPress version: 6.3.1
  • First release: Jan 14, 2021
  • Latest release: Jan 14, 2021
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: 4wpbari (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /400 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • Install procedure had errors
    • > Parse error in wp-content/plugins/tasti-rapidi/tasti-rapidi.php+123
    syntax error, unexpected end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.38ms] Passed 4 tests

This is a short check of server-side resources used by Tasti Rapidi
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.51 ▼6.25
Dashboard /wp-admin3.31 ▲0.0047.73 ▲0.66
Posts /wp-admin/edit.php3.36 ▲0.0043.97 ▲1.44
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.65 ▼4.89
Media Library /wp-admin/upload.php3.23 ▲0.0035.54 ▲0.98

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Tasti Rapidi
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.19 ▼1.411.77 ▲0.0140.91 ▼5.12
Dashboard /wp-admin2,203 ▲145.88 ▲0.92107.09 ▼15.0842.48 ▼1.72
Posts /wp-admin/edit.php2,092 ▲32.02 ▲0.0239.17 ▲4.3836.30 ▲2.26
Add New Post /wp-admin/post-new.php1,528 ▲1418.17 ▲0.72598.29 ▼22.0471.73 ▲12.93
Media Library /wp-admin/upload.php1,388 ▲64.20 ▲0.0596.86 ▼2.2844.94 ▲3.05

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/tasti-rapidi/tasti-rapidi.php on line 123

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: scorciatoia, tastiera, scelta rapida, tasti, tasti veloci

tasti-rapidi/tasti-rapidi.php Passed 13 tests

The primary PHP file in "Tasti Rapidi" version 1.0 is used by WordPress to initiate all plugin functionality
42 characters long description:
Tasti rapidi delle funzionalità WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected266 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript23643140
PHP1172382
CSS16044

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions3
▷ Named functions3100.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
PNG images were not found in this plugin