89% survicate

Code Review | Survicate

WordPress plugin Survicate scored89%from 54 tests.

About plugin

  • Plugin page: survicate
  • Plugin version: 4.1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Dec 24, 2014
  • Latest release: Sep 12, 2022
  • Number of updates: 30
  • Update frequency: every 94.0 days
  • Top authors: krejent (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /6,924 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.00MB] [CPU: ▼10.26ms] Passed 4 tests

This is a short check of server-side resources used by Survicate
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.72 ▲0.58
Dashboard /wp-admin3.31 ▼0.0349.00 ▼21.65
Posts /wp-admin/edit.php3.36 ▲0.0149.04 ▼5.78
Add New Post /wp-admin/post-new.php5.89 ▲0.0195.49 ▼13.55
Media Library /wp-admin/upload.php3.24 ▲0.0137.14 ▼0.06
Survicate /wp-admin/options-general.php?page=survicate3.2034.17

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Survicate
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.75 ▲0.111.64 ▼0.6343.22 ▲0.06
Dashboard /wp-admin2,198 ▲215.58 ▼0.0185.21 ▼3.5838.14 ▼4.19
Posts /wp-admin/edit.php2,106 ▲32.03 ▲0.0433.15 ▼8.2934.22 ▼2.25
Add New Post /wp-admin/post-new.php1,548 ▼023.22 ▲0.23615.65 ▼65.4559.49 ▲6.15
Media Library /wp-admin/upload.php1,400 ▲34.22 ▼0.0298.49 ▼4.0843.10 ▼2.97
Survicate /wp-admin/options-general.php?page=survicate8432.0224.2826.37

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
You can look at the official readme.txt

survicate/survicate.php 92% from 13 tests

"Survicate" version 4.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 165 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected151 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12217142
CSS1109

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
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%
Functions10
▷ Named functions10100.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