89% myworks-design-signpost-sync

Code Review | Signpost Sync for WooCommerce

WordPress plugin Signpost Sync for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: myworks-design-si...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 17, 2017
  • Latest release: Apr 17, 2017
  • Number of updates: 10
  • Update frequency: every 0.4 days
  • Top authors: myworksdesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /677 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼9.11ms] Passed 4 tests

This is a short check of server-side resources used by Signpost Sync for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0840.86 ▲1.06
Dashboard /wp-admin3.38 ▲0.0444.62 ▼17.11
Posts /wp-admin/edit.php3.43 ▲0.0847.27 ▲0.09
Add New Post /wp-admin/post-new.php5.96 ▲0.0883.69 ▼19.26
Media Library /wp-admin/upload.php3.30 ▲0.0836.32 ▼0.16

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_myworkssignpost_widget
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Signpost Sync for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,927 ▲18113.68 ▼0.675.04 ▲3.2537.56 ▼3.45
Dashboard /wp-admin2,222 ▲344.85 ▼0.06108.07 ▲7.2240.81 ▲1.00
Posts /wp-admin/edit.php2,105 ▲162.03 ▼0.0140.10 ▼0.4935.16 ▼0.01
Add New Post /wp-admin/post-new.php1,546 ▲923.33 ▲2.25680.83 ▼34.9853.61 ▼1.47
Media Library /wp-admin/upload.php1,404 ▲164.18 ▼0.03103.22 ▲5.6144.49 ▼0.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_myworkssignpost_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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 shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 75% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add descriptions for screenshots #1, #2 in myworks-design-signpost-sync/assets to your readme.txt
  • Contributors: The plugin contributors field is not present
  • Requires at least: Version format is invalid
  • Contributors: No tags were detected
Please take inspiration from this readme.txt

myworks-design-signpost-sync/myworks-signpost.php 92% from 13 tests

This is the main PHP file of "Signpost Sync for WooCommerce" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("myworks-design-signpost-sync.php" instead of "myworks-signpost.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected432 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP310124383
JavaScript19141
CSS1108

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin