83% sewn-in-simple-social-optimization

Code Review | Sewn In Simple Social Optimization

WordPress plugin Sewn In Simple Social Optimization scored83%from 54 tests.

About plugin

  • Plugin page: sewn-in-simple-so...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-4.8.1
  • WordPress version: 6.3.1
  • First release: Sep 2, 2017
  • Latest release: Sep 2, 2017
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: jcow (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /747 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
Installer ran successfully

Server metrics [RAM: ▲0.30MB] [CPU: ▼1.07ms] Passed 4 tests

This is a short check of server-side resources used by Sewn In Simple Social Optimization
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.3243.93 ▲6.30
Dashboard /wp-admin3.58 ▲0.2852.91 ▲2.09
Posts /wp-admin/edit.php3.70 ▲0.3452.66 ▲1.13
Add New Post /wp-admin/post-new.php6.19 ▲0.3195.03 ▼3.63
Media Library /wp-admin/upload.php3.51 ▲0.2839.95 ▼3.86

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Sewn In Simple Social Optimization
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲1714.72 ▲0.371.86 ▲0.0942.51 ▼3.54
Dashboard /wp-admin2,192 ▲125.62 ▲0.0894.30 ▲1.3542.88 ▼4.11
Posts /wp-admin/edit.php2,103 ▼01.95 ▼0.0641.48 ▲1.9136.07 ▼4.36
Add New Post /wp-admin/post-new.php6,403 ▲4,87725.84 ▲1.99970.75 ▲296.2367.70 ▲7.47
Media Library /wp-admin/upload.php1,403 ▲34.16 ▼0.06101.62 ▼3.3144.55 ▲0.65

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
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Sewn_Seo_Frontend' not found in wp-content/plugins/sewn-in-simple-social-optimization/includes/class-frontend-social.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed: The official readme.txt is a good inspiration

sewn-in-simple-social-optimization/sewn-simple-social-optimization.php 69% from 13 tests

The principal PHP file in "Sewn In Simple Social Optimization" v. 1.0.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 157 characters long)
  • Domain Path: The domain path points to a folder that 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
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sewn-in-simple-social-optimization.php" instead of "sewn-simple-social-optimization.php")

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 plugin1,720 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP72646811,379
CSS2276235
JavaScript22030106

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity37.83
▷ Minimum class complexity3.00
▷ Maximum class complexity78.00
Average method complexity4.62
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods61
▷ Static methods00.00%
▷ Public methods61100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG files were detected