89% koraki-social-proof

Code Review | Koraki WordPress Social Proof Plugin

WordPress plugin Koraki WordPress Social Proof Plugin scored89%from 54 tests.

About plugin

  • Plugin page: koraki-social-proof
  • Plugin version: 1.4.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4.1
  • WordPress version: 6.3.1
  • First release: May 9, 2020
  • Latest release: Jun 18, 2020
  • Number of updates: 23
  • Update frequency: every 1.7 days
  • Top authors: madushak (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /4,589 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 gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼7.20ms] Passed 4 tests

A check of server-side resources used by Koraki WordPress Social Proof Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1745.27 ▼0.24
Dashboard /wp-admin3.48 ▲0.1354.71 ▼10.92
Posts /wp-admin/edit.php3.59 ▲0.2350.14 ▲1.14
Add New Post /wp-admin/post-new.php5.62 ▼0.2778.37 ▼18.77
Media Library /wp-admin/upload.php3.40 ▲0.1748.34 ▲10.48

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Koraki WordPress Social Proof Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,894 ▲10814.35 ▼0.021.76 ▼0.3743.61 ▼1.36
Dashboard /wp-admin2,303 ▲1235.65 ▲0.0388.39 ▼2.4738.24 ▼5.39
Posts /wp-admin/edit.php2,206 ▲1032.05 ▲0.1036.69 ▼2.7934.42 ▼1.66
Add New Post /wp-admin/post-new.php6,263 ▲4,73726.06 ▲2.351,022.27 ▲298.4867.01 ▲12.80
Media Library /wp-admin/upload.php1,509 ▲1094.22 ▲0.01111.65 ▲6.3347.05 ▼0.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% 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
6 plugin tags: sales boost, social proof, social, sales pop, popup...

koraki-social-proof/koraki.php 85% from 13 tests

This is the main PHP file of "Koraki WordPress Social Proof Plugin" version 1.4.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("koraki-social-proof.php" instead of "koraki.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin688 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP11173490685
JavaScript12273
CSS1040

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity12.14
▷ Minimum class complexity1.00
▷ Maximum class complexity46.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods48
▷ Static methods24.17%
▷ Public methods3879.17%
▷ Protected methods00.00%
▷ Private methods1020.83%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin