73% feedbackstr-easyshare

Code Review | Feedbackstr easyShare

WordPress plugin Feedbackstr easyShare scored73%from 54 tests.

About plugin

  • Plugin page: feedbackstr-easys...
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.4.2
  • WordPress version: 6.3.1
  • First release: May 26, 2015
  • Latest release: May 24, 2016
  • Number of updates: 21
  • Update frequency: every 17.5 days
  • Top authors: Spectos (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,289 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.90MB] [CPU: ▼31.42ms] Passed 4 tests

An overview of server-side resources used by Feedbackstr easyShare
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.42 ▼6.85
Dashboard /wp-admin3.04 ▼0.2625.87 ▼20.85
Posts /wp-admin/edit.php3.04 ▼0.3124.69 ▼21.57
Add New Post /wp-admin/post-new.php3.04 ▼2.8424.81 ▼73.12
Media Library /wp-admin/upload.php3.04 ▼0.1924.82 ▼10.14

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Feedbackstr easyShare: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲9213.45 ▼0.861.81 ▼0.0131.41 ▼10.09
Dashboard /wp-admin2,229 ▲445.97 ▲0.18105.94 ▲0.7986.92 ▲43.24
Posts /wp-admin/edit.php2,136 ▲442.30 ▲0.2941.24 ▼3.1639.92 ▲1.07
Add New Post /wp-admin/post-new.php1,704 ▲19022.64 ▲5.06736.11 ▲77.7634.92 ▼29.87
Media Library /wp-admin/upload.php1,426 ▲384.36 ▲0.07115.37 ▲13.8944.90 ▲2.40

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/feedbackstr-easyshare/dashboard/header.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/feedbackstr-easyshare/shortcode-button.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/feedbackstr-easyshare/dashboard/footer.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/feedbackstr-easyshare/dashboard/dashboard.php:144
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/feedbackstr-easyshare/dashboard/dashboard.php:144

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 90% from 29 tests

readme.txt Passed 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
8 plugin tags: feedbackstr, spectos, easyshare, umfrage, survey...

feedbackstr-easyshare/index.php 77% from 13 tests

The primary PHP file in "Feedbackstr easyShare" version 1.1.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: Please don't use more than 140 characters for the plugin description (currently 213 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("feedbackstr-easyshare.php" instead of "index.php")

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 plugin1,293 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
SVG515346
CSS2510335
PHP54326255
JavaScript33630216
PO File256151141

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.56MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
dashboard/images/logo.png25.48KB3.79KB▼ 85.12%
screenshot-1.png142.06KB45.68KB▼ 67.84%
dashboard/images/f-googleplus.png1.43KB0.64KB▼ 55.17%
dashboard/images/f-twitter.png1.36KB0.59KB▼ 56.98%
assets/banner772-250.png133.59KB56.61KB▼ 57.63%