10% qeryz-microsurvey-tool

Code Review | Qeryz Wordpress Survey

WordPress plugin Qeryz Wordpress Survey scored 10% from 54 tests.

About plugin

  • Plugin page: qeryz-microsurvey...
  • Plugin version: 1.6.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0.3
  • WordPress version: 6.3.1
  • First release: Sep 3, 2014
  • Latest release: Feb 8, 2019
  • Number of updates: 39
  • Update frequency: every 41.9 days
  • Top authors: h3sean (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

30+ active / 4,666 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/qeryz-microsurvey-tool/qeryz_survey.php+207
    Undefined variable: pagenow

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.87ms] Passed 4 tests

A check of server-side resources used by Qeryz Wordpress Survey
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.61 ▼5.08
Dashboard /wp-admin3.32 ▲0.0146.18 ▼1.82
Posts /wp-admin/edit.php3.36 ▲0.0143.48 ▼4.89
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.87 ▼11.68
Media Library /wp-admin/upload.php3.24 ▲0.0133.25 ▼0.73

Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

A check of browser resources used by Qeryz Wordpress Survey
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲11113.30 ▼1.021.93 ▲0.2135.90 ▼5.82
Dashboard /wp-admin2,226 ▲385.86 ▲0.79113.73 ▲7.0871.32 ▲27.93
Posts /wp-admin/edit.php2,106 ▲172.00 ▼0.0635.20 ▼5.5232.91 ▼2.79
Add New Post /wp-admin/post-new.php1,534 ▲623.27 ▲4.89780.28 ▲179.2351.17 ▼7.93
Media Library /wp-admin/upload.php1,405 ▲174.17 ▼0.0399.52 ▲0.2175.60 ▲31.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • 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 everything seems fine, this is not 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/qeryz-microsurvey-tool/qeryz_survey.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: qeryz, microsurvey, wordpress survey, survey tool

qeryz-microsurvey-tool/qeryz_survey.php 92% from 13 tests

"Qeryz Wordpress Survey" version 1.6.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("qeryz-microsurvey-tool.php" instead of "qeryz_survey.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin342 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25659263
CSS11279

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/qeryz_menu_icon.png0.98KB0.68KB▼ 31.35%
images/qeryzlogo.png6.43KB3.08KB▼ 52.13%