73% my-social-reach

Code Review | My Social Reach

WordPress plugin My Social Reach scored73%from 54 tests.

About plugin

  • Plugin page: my-social-reach
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7.2
  • WordPress version: 6.3.1
  • First release: Jun 26, 2021
  • Latest release: Jun 26, 2021
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: tectera (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /299 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.79ms] Passed 4 tests

An overview of server-side resources used by My Social Reach
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0540.52 ▲4.84
Dashboard /wp-admin3.36 ▲0.0649.90 ▲2.98
Posts /wp-admin/edit.php3.41 ▲0.0644.63 ▼5.41
Add New Post /wp-admin/post-new.php5.94 ▲0.0681.52 ▼17.61
Media Library /wp-admin/upload.php3.28 ▲0.0535.21 ▲0.90

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: 2 new tables, 6 new options
New tables
wp_share_links_count
wp_admin_share_links
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by My Social Reach
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.33 ▼0.021.81 ▲0.1343.96 ▲3.06
Dashboard /wp-admin2,205 ▲305.51 ▼0.1086.19 ▼16.1038.83 ▼5.48
Posts /wp-admin/edit.php2,116 ▲132.03 ▲0.0036.20 ▼5.7234.22 ▼5.22
Add New Post /wp-admin/post-new.php1,539 ▲1322.83 ▼0.15668.10 ▲27.3362.60 ▼5.59
Media Library /wp-admin/upload.php1,416 ▲224.22 ▲0.03103.51 ▲3.4847.12 ▲2.42

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% 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
  • Zombie tables were found after uninstall: 2 tables
    • wp_admin_share_links
    • wp_share_links_count
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/my-social-reach/backend/config.php on line 7
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/my-social-reach/backend/config.php on line 5

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

readme.txt 94% 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
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Social sharing), #2 (Choose selected social icons to display)
The official readme.txt might help

my-social-reach/igniter.php 85% from 13 tests

The entry point to "My Social Reach" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("my-social-reach.php" instead of "igniter.php")

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 plugin428 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP511626346
CSS10151
JavaScript14031

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.55
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.22MB with 0.12MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshots/2.png80.03KB42.78KB▼ 46.54%
screenshots/1.png140.53KB52.17KB▼ 62.88%