84% kmo-social-shares

Code Review | KMO Social

WordPress plugin KMO Social scored 84% from 54 tests.

About plugin

  • Plugin page: kmo-social-shares
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Jan 21, 2015
  • Latest release: Apr 26, 2015
  • Number of updates: 3
  • Update frequency: every 32.3 days
  • Top authors: kmo_design (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 788 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.99ms] Passed 4 tests

Analyzing server-side resources used by KMO Social
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.94 ▼5.07
Dashboard /wp-admin3.33 ▲0.0344.89 ▼2.74
Posts /wp-admin/edit.php3.38 ▲0.0349.01 ▲1.71
Add New Post /wp-admin/post-new.php5.91 ▲0.0393.49 ▼5.87
Media Library /wp-admin/upload.php3.25 ▲0.0237.10 ▲3.57
KMO Social /wp-admin/options-general.php?page=kmo-social3.2232.73

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 22 new options
New WordPress options
db_upgraded
kmo_social_font_size
kmo_social_out
kmo_social_facebook
kmo_social_height
kmo_social_twitter
kmo_social_top
widget_theysaidso_widget
kmo_social_pinterest_text
kmo_social_in
...

Browser metrics Passed 4 tests

KMO Social: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲11213.28 ▼0.991.77 ▼0.0557.71 ▲7.38
Dashboard /wp-admin2,204 ▲164.88 ▲0.0199.48 ▼13.0441.47 ▼4.31
Posts /wp-admin/edit.php2,101 ▲122.07 ▲0.0540.01 ▲5.7736.92 ▲0.30
Add New Post /wp-admin/post-new.php1,544 ▲3018.64 ▲0.93623.09 ▼75.6751.98 ▼1.36
Media Library /wp-admin/upload.php1,394 ▲124.21 ▲0.0196.41 ▼3.7641.70 ▼0.35
KMO Social /wp-admin/options-general.php?page=kmo-social1,0732.2727.8227.98

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kmo-social-shares/kmo-social-options.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kmo-social-shares/kmo-social-options.php:3

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

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: facebook, tweet, pin, icons, share...

kmo-social-shares/kmo-social.php 92% from 13 tests

The principal PHP file in "KMO Social" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("kmo-social-shares.php" instead of "kmo-social.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected285 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP23322270
SVG10013
CSS1002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There were not PNG files found in your plugin