84% rws-enquiry

Code Review | RWS Enquiry And Lead Follow-up

WordPress plugin RWS Enquiry And Lead Follow-up scored84%from 54 tests.

About plugin

  • Plugin page: rws-enquiry
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 6.3.1
  • First release: Jun 28, 2018
  • Latest release: Mar 5, 2021
  • Number of updates: 19
  • Update frequency: every 51.8 days
  • Top authors: rhizomaticweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /749 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.11MB] [CPU: ▼5.31ms] Passed 4 tests

Server-side resources used by RWS Enquiry And Lead Follow-up
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1036.74 ▼4.01
Dashboard /wp-admin3.41 ▲0.1149.86 ▼4.84
Posts /wp-admin/edit.php3.52 ▲0.1751.77 ▲3.65
Add New Post /wp-admin/post-new.php5.99 ▲0.1087.68 ▼16.04
Media Library /wp-admin/upload.php3.33 ▲0.1042.60 ▲6.53
Follow Ups /wp-admin/edit.php?post_type=rws_enquiry_followup&page=rws_followup3.3036.77
All Enquries /wp-admin/edit.php?post_type=rws_enquiry_followup3.3838.69
Add New Enquiry /wp-admin/post-new.php?post_type=rws_enquiry_followup3.3643.76

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for RWS Enquiry And Lead Follow-up
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,909 ▲12314.63 ▲0.282.09 ▼0.1044.14 ▼0.79
Dashboard /wp-admin2,284 ▲1075.58 ▼0.0885.94 ▼8.1738.10 ▼3.42
Posts /wp-admin/edit.php2,133 ▲332.02 ▲0.0839.92 ▲2.7535.43 ▼1.53
Add New Post /wp-admin/post-new.php1,555 ▲2723.15 ▼0.08674.71 ▲39.4751.35 ▼4.49
Media Library /wp-admin/upload.php1,427 ▲304.20 ▲0.0498.91 ▼6.3244.98 ▼0.54
Follow Ups /wp-admin/edit.php?post_type=rws_enquiry_followup&page=rws_followup8331.9925.7433.40
All Enquries /wp-admin/edit.php?post_type=rws_enquiry_followup1,1211.9731.6231.06
Add New Enquiry /wp-admin/post-new.php?post_type=rws_enquiry_followup1,5932.6249.0251.21

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/rws-enquiry/rws-enquiry.php:28
    • > PHP Notice
      Undefined variable: ename in wp-content/plugins/rws-enquiry/view/rws_new_followup.php on line 3
    • > PHP Notice
      Undefined index: enquiry in wp-content/plugins/rws-enquiry/view/rws_new_followup.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/rws-enquiry/view/rws_new_followup.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/rws-enquiry/enq_template.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/rws-enquiry/view/rws_front_end.php:20

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: contact form, feedback, crm, forms, leads...

rws-enquiry/rws-enquiry.php Passed 13 tests

The primary PHP file in "RWS Enquiry And Lead Follow-up" version 1.0 is used by WordPress to initiate all plugin functionality
88 characters long description:
Genrate leads with their Follow ups. Best way manage follow ups with respect to enquies.

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
There were no executable files found in this plugin476 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP7237108475
CSS1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity23.00
▷ Minimum class complexity22.00
▷ Maximum class complexity24.00
Average method complexity2.63
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods27
▷ Static methods27100.00%
▷ Public methods2592.59%
▷ Protected methods00.00%
▷ Private methods27.41%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin