84% spridz-widget

Code Review | Spridz Customer Feedback

WordPress plugin Spridz Customer Feedback scored 84% from 54 tests.

About plugin

  • Plugin page: spridz-widget
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.95
  • WordPress version: 6.3.1
  • First release: Apr 25, 2018
  • Latest release: May 5, 2018
  • Number of updates: 9
  • Update frequency: every 1.1 days
  • Top authors: spridz0 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 744 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.50ms] Passed 4 tests

Analyzing server-side resources used by Spridz Customer Feedback
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.88 ▼2.05
Dashboard /wp-admin3.33 ▲0.0346.88 ▼10.39
Posts /wp-admin/edit.php3.46 ▲0.1074.65 ▲33.82
Add New Post /wp-admin/post-new.php5.91 ▲0.0393.20 ▼10.66
Media Library /wp-admin/upload.php3.25 ▲0.0234.96 ▲1.12

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_spridz_widget
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Spridz Customer Feedback
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.37 ▼1.414.64 ▲2.7445.17 ▼1.53
Dashboard /wp-admin2,209 ▲244.86 ▼0.0299.77 ▼4.2037.81 ▼7.78
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0139.29 ▲0.2335.43 ▲1.55
Add New Post /wp-admin/post-new.php1,534 ▲123.23 ▲0.17664.84 ▲38.4168.47 ▲20.32
Media Library /wp-admin/upload.php1,388 ▼04.25 ▲0.0399.73 ▲6.8750.04 ▲8.02

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_spridz_widget
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/spridz-widget/spridz-widget.php on line 13
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/spridz-widget/spridz-widget.php on line 13
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHWPINC/class-http.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/spridz-widget/spridz-widget.php on line 13
    • > PHP Warning
      include_once(ABSPATHWPINC/class-http.php): failed to open stream: No such file or directory in wp-content/plugins/spridz-widget/spridz-widget.php on line 13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/spridz-widget/spridz-widget.php:16

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

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Requires php: Invalid version format
You can take inspiration from this readme.txt

spridz-widget/spridz-widget.php Passed 13 tests

The main file in "Spridz Customer Feedback" v. 0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
39 characters long description:
Your own Spridz customer survey widget.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected67 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1291367

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected