84% capsule-sync

Code Review | Capsule Sync

WordPress plugin Capsule Sync scored84%from 54 tests.

About plugin

  • Plugin page: capsule-sync
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: May 2, 2013
  • Latest release: Oct 23, 2014
  • Number of updates: 20
  • Update frequency: every 27.0 days
  • Top authors: Youdaman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,381 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.07MB] [CPU: ▼4.97ms] Passed 4 tests

Analyzing server-side resources used by Capsule Sync
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0439.42 ▲3.02
Dashboard /wp-admin3.38 ▲0.0846.26 ▲0.76
Posts /wp-admin/edit.php3.43 ▲0.0744.96 ▲1.33
Add New Post /wp-admin/post-new.php5.96 ▲0.0879.96 ▼20.71
Media Library /wp-admin/upload.php3.30 ▲0.0732.85 ▼1.24

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Capsule Sync
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.35 ▼0.241.62 ▲0.0442.89 ▲1.41
Dashboard /wp-admin2,213 ▲335.54 ▼0.1285.53 ▼3.2373.55 ▲32.52
Posts /wp-admin/edit.php2,112 ▲121.99 ▲0.0335.30 ▲2.5034.29 ▼3.68
Add New Post /wp-admin/post-new.php1,539 ▲1123.65 ▲0.36749.39 ▲48.2655.86 ▼0.60
Media Library /wp-admin/upload.php1,418 ▲184.11 ▼0.0794.37 ▼15.1280.27 ▲28.13

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/capsule-sync/capsule-sync.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% 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
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Settings page)
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === capsule-sync === )
Please take inspiration from this readme.txt

capsule-sync/capsule-sync.php Passed 13 tests

The main file in "Capsule Sync" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
38 characters long description:
Sync WordPress users with Capsule Sync

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
Everything looks great! No dangerous files found in this plugin257 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15646257

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icon.png0.68KB0.56KB▼ 17.89%
screenshot-1.png67.77KB20.30KB▼ 70.04%