89% slurv-sync

Code Review | SlurvSync

WordPress plugin SlurvSync scored89%from 54 tests.

About plugin

  • Plugin page: slurv-sync
  • Plugin version: 1.2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.2
  • WordPress version: 6.3.1
  • First release: Feb 18, 2016
  • Latest release: Jul 1, 2016
  • Number of updates: 38
  • Update frequency: every 3.7 days
  • Top authors: kohactivellc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /857 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.36MB] [CPU: ▼20.92ms] Passed 4 tests

An overview of server-side resources used by SlurvSync
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.43 ▼0.0333.52 ▼15.27
Dashboard /wp-admin3.24 ▼0.0641.36 ▼11.45
Posts /wp-admin/edit.php3.29 ▼0.0744.33 ▼8.67
Add New Post /wp-admin/post-new.php4.61 ▼1.2846.65 ▼48.30
Media Library /wp-admin/upload.php3.24 ▲0.0136.87 ▼4.88

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

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

Browser metrics Passed 4 tests

SlurvSync: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.27 ▲1.081.64 ▼3.1239.72 ▼8.18
Dashboard /wp-admin2,214 ▲405.65 ▲0.1191.60 ▲3.5443.83 ▲4.84
Posts /wp-admin/edit.php2,119 ▲191.98 ▼0.0439.30 ▲1.1040.27 ▲5.63
Add New Post /wp-admin/post-new.php1,539 ▲1323.12 ▼0.07634.86 ▼59.6050.50 ▼9.21
Media Library /wp-admin/upload.php1,410 ▲74.18 ▼0.0299.46 ▼7.0744.81 ▼0.64

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === slurv-sync === )
  • Screenshots: Please add an image for screenshot #1 (The Slurv settings page)
You can look at the official readme.txt

slurv-sync/slurvsync.php 77% from 13 tests

The main PHP file in "SlurvSync" ver. 1.2.7 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("slurv-sync.php" instead of "slurvsync.php")
  • Domain Path: The domain path folder does not exist ("/languages")
  • 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 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin798 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12224501644
JavaScript3162057
Markdown124049
CSS19148

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods43
▷ Static methods511.63%
▷ Public methods3069.77%
▷ Protected methods00.00%
▷ Private methods1330.23%
Functions12
▷ Named functions1191.67%
▷ Anonymous functions18.33%
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
There are no PNG files in this plugin