84% scancircle

Code Review | ScanCircle

WordPress plugin ScanCircle scored84%from 54 tests.

About plugin

  • Plugin page: scancircle
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-6.1
  • WordPress version: 6.3.1
  • First release: Oct 20, 2013
  • Latest release: Oct 26, 2022
  • Number of updates: 44
  • Update frequency: every 74.9 days
  • Top authors: aklaren (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /3,069 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.80ms] Passed 4 tests

A check of server-side resources used by ScanCircle
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.84 ▼9.98
Dashboard /wp-admin3.31 ▲0.0049.63 ▲4.48
Posts /wp-admin/edit.php3.36 ▲0.0046.55 ▲1.94
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.95 ▼7.92
Media Library /wp-admin/upload.php3.23 ▲0.0030.52 ▼3.23

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

ScanCircle: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.42 ▼0.221.73 ▼0.4939.69 ▲1.05
Dashboard /wp-admin2,203 ▲125.85 ▲0.77104.25 ▲0.4539.35 ▼6.24
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0839.99 ▼1.3935.84 ▼0.37
Add New Post /wp-admin/post-new.php1,533 ▲1623.10 ▲5.37644.22 ▼4.8056.35 ▲6.71
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.0393.78 ▼2.5945.34 ▲2.17

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/scancircle/scancircle.php:10

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 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
5 plugin tags: shortcode, widget, scan, button, scancircle

scancircle/scancircle.php Passed 13 tests

Analyzing the main PHP file in "ScanCircle" version 2.0
102 characters long description:
Shortcode for the scan widget on ScanCircle partner websites. Only for registered ScanCircle partners.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin76 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP191076

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 issues
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions3
▷ Named functions3100.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