78% feedbacks-and-reviews

Code Review | Feedbacks and Reviews

WordPress plugin Feedbacks and Reviews scored78%from 54 tests.

About plugin

  • Plugin page: feedbacks-and-rev...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4.2
  • WordPress version: 6.3.1
  • First release: Mar 1, 2016
  • Latest release: Mar 1, 2016
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: pasqualebucci (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,287 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼11.98ms] Passed 4 tests

A check of server-side resources used by Feedbacks and Reviews
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0635.63 ▼3.51
Dashboard /wp-admin3.39 ▲0.0544.29 ▼19.51
Posts /wp-admin/edit.php3.44 ▲0.0847.78 ▲1.67
Add New Post /wp-admin/post-new.php5.99 ▲0.1091.35 ▼26.55
Media Library /wp-admin/upload.php3.31 ▲0.0836.42 ▲2.33
Add New Feedback /wp-admin/post-new.php?post_type=paky-feedback3.9051.40
All Feedbacks /wp-admin/edit.php?post_type=paky-feedback3.3632.78

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 372 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Feedbacks and Reviews
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,978 ▲23213.85 ▼0.826.80 ▲4.9838.82 ▼8.87
Dashboard /wp-admin2,260 ▲725.04 ▼0.86109.84 ▼1.4639.42 ▼2.96
Posts /wp-admin/edit.php2,143 ▲542.26 ▲0.2538.93 ▼1.5535.63 ▼3.06
Add New Post /wp-admin/post-new.php1,573 ▲3118.17 ▼0.02597.44 ▼32.9357.35 ▲7.10
Media Library /wp-admin/upload.php1,445 ▲574.36 ▲0.1795.88 ▼10.2141.66 ▼3.21
Add New Feedback /wp-admin/post-new.php?post_type=paky-feedback2,3307.81178.4067.19
Settings /wp-admin/paky-feedback-options.php260.440.1111.05
All Feedbacks /wp-admin/edit.php?post_type=paky-feedback1,1392.2032.0926.80

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/feedbacks-and-reviews/inc/view-shortcodes.php:95
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/feedbacks-and-reviews/cmb2/bootstrap.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/feedbacks-and-reviews/cmb2/init.php:71
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/feedbacks-and-reviews/inc/star-rating.php:79
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/feedbacks-and-reviews/inc/paky-feedback-options.php:39

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/paky-feedback-options.php
    • > Network (severe)
    wp-admin/paky-feedback-options.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can take inspiration from this readme.txt

feedbacks-and-reviews/feedbacks-and-reviews.php Passed 13 tests

The main PHP script in "Feedbacks and Reviews" version 1.0 is automatically included on every request by WordPress
51 characters long description:
Amazing Feedbacks and Reviews plugin for WordPress.

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
Success! There were no dangerous files found in this plugin45,887 lines of code in 221 files:
LanguageFilesBlank linesComment linesLines of code
PO File12012,79416,39229,300
JavaScript581,5001,2556,804
CSS131,0851,1025,334
PHP189472,1783,320
Sass11168231,116
SVG11013

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity39.93
▷ Minimum class complexity3.00
▷ Maximum class complexity121.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods204
▷ Static methods2110.29%
▷ Public methods19294.12%
▷ Protected methods83.92%
▷ Private methods41.96%
Functions41
▷ Named functions41100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants360.00%
▷ Class constants240.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
cmb2/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
cmb2/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
cmb2/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
cmb2/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
cmb2/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%