84% sold-alerts

Code Review | Sold Alerts

WordPress plugin Sold Alerts scored84%from 54 tests.

About plugin

  • Plugin page: sold-alerts
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.8
  • WordPress version: 6.3.1
  • First release: Apr 10, 2017
  • Latest release: Oct 13, 2017
  • Number of updates: 22
  • Update frequency: every 8.5 days
  • Top authors: 8blocks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,216 total downloads

Benchmarks

Plugin footprint 83% 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.97MB] [CPU: ▼2.76ms] Passed 4 tests

An overview of server-side resources used by Sold Alerts
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.38 ▲0.9150.19 ▲6.61
Dashboard /wp-admin4.27 ▲0.9759.97 ▲4.31
Posts /wp-admin/edit.php4.37 ▲1.0155.90 ▲2.71
Add New Post /wp-admin/post-new.php6.98 ▲1.0987.17 ▼24.66
Media Library /wp-admin/upload.php4.21 ▲0.9846.86 ▲7.21
All Leads /wp-admin/edit.php?post_type=8b_sa_lead4.2145.62
Export /wp-admin/edit.php?post_type=8b_sa_lead&page=8b_sold_alerts_export_leads4.7541.55
Settings /wp-admin/edit.php?post_type=8b_sa_lead&page=8b_sold_alerts_settings5.1646.22

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 253 new files
Database: no new tables, 33 new options
New WordPress options
Sold_Alerts_email_sales_text
Sold_Alerts_email_new_lead_subject
Sold_Alerts_subscribers_count
Sold_Alerts_lead_form_first_name_placeholder
Sold_Alerts_lead_form_submit_button_text
Sold_Alerts_email_new_lead_recipients
Sold_Alerts_email_new_lead_text
Sold_Alerts_lead_form_enter_your_address_placeholder
Sold_Alerts_lead_form_last_name_required
Sold_Alerts_lead_form_first_name_required
...

Browser metrics Passed 4 tests

An overview of browser requirements for Sold Alerts
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,935 ▲17413.83 ▼0.729.90 ▲8.1042.28 ▼5.94
Dashboard /wp-admin2,233 ▲535.66 ▲0.0789.88 ▼12.2841.02 ▼1.33
Posts /wp-admin/edit.php2,138 ▲382.04 ▼0.1242.97 ▲4.5035.56 ▼1.40
Add New Post /wp-admin/post-new.php1,555 ▲2923.02 ▼0.15711.92 ▼10.0765.13 ▲16.08
Media Library /wp-admin/upload.php1,438 ▲414.22 ▲0.03105.47 ▲3.7444.83 ▲0.37
All Leads /wp-admin/edit.php?post_type=8b_sa_lead1,0881.9935.0630.87
Export /wp-admin/edit.php?post_type=8b_sa_lead&page=8b_sold_alerts_export_leads8301.7026.6327.70
Settings /wp-admin/edit.php?post_type=8b_sa_lead&page=8b_sold_alerts_settings1,0501.8225.5031.26

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 33 options in the database
    • Sold_Alerts_lead_form_last_name_placeholder
    • Sold_Alerts_email_new_lead_sender_email
    • Sold_Alerts_load_css
    • Sold_Alerts_google_api_key
    • Sold_Alerts_lead_form_first_name_required
    • Sold_Alerts_email_sales_sender_name
    • Sold_Alerts_thank_you_text
    • Sold_Alerts_email_new_lead_text
    • Sold_Alerts_email_new_lead_subject
    • Sold_Alerts_lead_pool_blog
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 134× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Trait 'plainview\\sdk_eightb_sold_alerts\\table\\table_element' not found in wp-content/plugins/sold-alerts/src/sdk/table/section.php on line 10
    • > PHP Fatal error
      Trait 'plainview\\sdk_eightb_sold_alerts\\traits\\method_chaining' not found in wp-content/plugins/sold-alerts/src/sdk/wordpress/table/top/bulkactions.php on line 15
    • > PHP Fatal error
      Trait 'plainview\\sdk_eightb_sold_alerts\\html\\element' not found in wp-content/plugins/sold-alerts/src/sdk/form2/inputs/input.php on line 11
    • > PHP Fatal error
      Uncaught Error: Class 'plainview\\sdk_eightb_sold_alerts\\html\\tests\\TestCase' not found in wp-content/plugins/sold-alerts/src/sdk/html/tests/AttributeTest.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'plainview\\sdk_eightb_sold_alerts\\wordpress\\actions\\action' not found in wp-content/plugins/sold-alerts/src/sdk/wordpress/plugin_pack/actions/get_plugin_classes.php:9
    • > PHP Fatal error
      Trait 'plainview\\sdk_eightb_sold_alerts\\html\\element' not found in wp-content/plugins/sold-alerts/src/sdk/form2/inputs/label.php on line 11
    • > PHP Fatal error
      Uncaught Error: Class 'plainview\\sdk_eightb_sold_alerts\\collections\\collection' not found in wp-content/plugins/sold-alerts/src/sdk/wordpress/plugin_pack/plugins.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'plainview\\sdk_eightb_sold_alerts\\form2\\inputs\\textarea' not found in wp-content/plugins/sold-alerts/src/sdk/wordpress/form2/inputs/wp_editor.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'plainview\\sdk_eightb_sold_alerts\\table\\table' not found in wp-content/plugins/sold-alerts/src/sdk/wordpress/table/table.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'plainview\\sdk_eightb_sold_alerts\\form2\\inputs\\text' not found in wp-content/plugins/sold-alerts/src/sdk/form2/inputs/search.php:11

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

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: real estate, home sales, sold email, sold home alerts

sold-alerts/EightB_Sold_Alerts.php 92% from 13 tests

Analyzing the main PHP file in "Sold Alerts" version 1.7
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("sold-alerts.php" instead of "EightB_Sold_Alerts.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected11,694 lines of code in 225 files:
LanguageFilesBlank linesComment linesLines of code
PHP1962,7136,54510,679
JavaScript8108132569
Markdown3430104
PO File1404398
JSON30087
Bourne Shell524978
XML10042
HTML70019
CSS16818

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity5.27
▷ Minimum class complexity1.00
▷ Maximum class complexity72.00
Average method complexity1.72
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces37
Interfaces0
Traits51
Classes136
▷ Abstract classes32.21%
▷ Concrete classes13397.79%
▷ Final classes00.00%
Methods1,072
▷ Static methods847.84%
▷ Public methods1,06899.63%
▷ Protected methods20.19%
▷ Private methods20.19%
Functions19
▷ Named functions1052.63%
▷ Anonymous functions947.37%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin