83% realtycandy-idx-broker-simple-social-icons-idxaddon

Code Review | IDX Broker Simple Social Icons

WordPress plugin IDX Broker Simple Social Icons scored 83% from 53 tests.

About plugin

  • Plugin page: realtycandy-idx-b...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6
  • WordPress version: 5.8.1
  • First release: Nov 29, 2016
  • Latest release: Dec 1, 2016
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: RealtyCandy (100%)

Code review

53 tests

User reviews

1 review

Install metrics

50+ active / 866 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
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼272.36ms] Passed 4 tests

An overview of server-side resources used by IDX Broker Simple Social Icons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.92 ▲0.2036.99 ▲7.98
Dashboard /wp-admin3.14 ▲0.0943.18 ▼2.50
Posts /wp-admin/edit.php3.19 ▲0.0942.94 ▼1.71
Add New Post /wp-admin/post-new.php5.50 ▲0.0887.27 ▼1,089.16
Media Library /wp-admin/upload.php3.08 ▲0.0838.00 ▲3.94

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options
widget_simple-social-icons

Browser metrics Passed 4 tests

Checking browser requirements for IDX Broker Simple Social Icons
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,680 ▲7415.79 ▲0.258.05 ▼2.5947.80 ▼1.26
Dashboard /wp-admin2,931 ▲815.92 ▲0.09144.17 ▲4.46112.13 ▼2.66
Posts /wp-admin/edit.php2,706 ▼02.69 ▼0.0078.53 ▲15.12106.59 ▲15.27
Add New Post /wp-admin/post-new.php1,481 ▼37018.29 ▲0.83359.91 ▼16.03122.70 ▲12.73
Media Library /wp-admin/upload.php1,772 ▼04.98 ▼0.03148.03 ▼16.43113.01 ▲1.64

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 1 option in the database
    • widget_simple-social-icons

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/realtycandy-idx-broker-simple-social-icons-idxaddon/simple-social-icons.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: idxbroker, idx broker, real estate, idx, social media...

realtycandy-idx-broker-simple-social-icons-idxaddon/simple-social-icons.php 77% from 13 tests

The primary PHP file in "IDX Broker Simple Social Icons" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 155 characters long)
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("realtycandy-idx-broker-simple-social-icons-idxaddon.php" instead of "simple-social-icons.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin394 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP184102279
Markdown131074
CSS15041

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

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