84% chatme-sharing-jetpack

Code Review | ChatMe Sharing JetPack

WordPress plugin ChatMe Sharing JetPack scored84%from 54 tests.

About plugin

  • Plugin page: chatme-sharing-je...
  • Plugin version: 1.0 RC 1...
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5
  • WordPress version: 6.3.1
  • First release: Feb 11, 2016
  • Latest release: Jul 7, 2020
  • Number of updates: 20
  • Update frequency: every 80.4 days
  • Top authors: camaran (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /758 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.22ms] Passed 4 tests

Analyzing server-side resources used by ChatMe Sharing JetPack
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.50 ▼3.40
Dashboard /wp-admin3.32 ▲0.0149.90 ▲4.34
Posts /wp-admin/edit.php3.37 ▲0.0143.69 ▼4.82
Add New Post /wp-admin/post-new.php5.90 ▲0.01102.59 ▲2.89
Media Library /wp-admin/upload.php3.24 ▲0.0133.52 ▲0.45

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for ChatMe Sharing JetPack
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6613.65 ▲0.391.70 ▼2.7343.03 ▲1.15
Dashboard /wp-admin2,216 ▲285.80 ▲0.9098.12 ▼19.0042.78 ▲1.23
Posts /wp-admin/edit.php2,098 ▲92.04 ▲0.0034.01 ▼3.5336.82 ▲3.37
Add New Post /wp-admin/post-new.php1,552 ▲1618.23 ▼4.72599.57 ▼47.1845.76 ▼3.78
Media Library /wp-admin/upload.php1,398 ▲104.17 ▼0.0399.24 ▲0.8840.47 ▼0.38

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
Please fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Sharing_Source' not found in wp-content/plugins/chatme-sharing-jetpack/classes/class.chatme-sharing-jetpack.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chatme-sharing-jetpack/chatme-sharing-jetpack.php:21

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 93% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (The ChatMe Sharing Button)
You can take inspiration from this readme.txt

chatme-sharing-jetpack/chatme-sharing-jetpack.php 92% from 13 tests

The entry point to "ChatMe Sharing JetPack" version 1.0 RC 1... is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "1.0 RC 1...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected123 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
SVG10060
PHP2111552
CSS11011

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity2.50
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.38
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin