78% nuton-text-share

Code Review | Nuton Text Share WordPress

WordPress plugin Nuton Text Share WordPress scored 78% from 54 tests.

About plugin

  • Plugin page: nuton-text-share
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.9.8
  • WordPress version: 6.3.1
  • First release: Aug 28, 2018
  • Latest release: Aug 28, 2018
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: jewel1994 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 502 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼3.45ms] Passed 4 tests

Analyzing server-side resources used by Nuton Text Share WordPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.36 ▼3.12
Dashboard /wp-admin3.55 ▲0.2448.95 ▼1.62
Posts /wp-admin/edit.php3.63 ▲0.2749.99 ▲1.13
Add New Post /wp-admin/post-new.php6.07 ▲0.1984.77 ▼10.18
Media Library /wp-admin/upload.php3.42 ▲0.1937.57 ▲2.39

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
text_share_general
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
text_share_color
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Nuton Text Share WordPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,085 ▲35015.26 ▲0.645.92 ▲4.2543.76 ▼7.28
Dashboard /wp-admin2,364 ▲1736.62 ▲1.72121.09 ▲17.7137.92 ▼7.20
Posts /wp-admin/edit.php2,276 ▲1873.59 ▲1.5946.34 ▲10.1032.87 ▼3.68
Add New Post /wp-admin/post-new.php1,368 ▼15217.24 ▼6.01567.43 ▼99.7329.78 ▼36.34
Media Library /wp-admin/upload.php1,403 ▲184.31 ▲0.0980.54 ▼31.9438.08 ▼7.62
Text Share Options /wp-admin/text-share-options.php260.440.1212.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • can_compress_scripts
    • text_share_general
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • text_share_color

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nuton-text-share/includes/text-share-options-set.php:191
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nuton-text-share/admin/src/class.settings-api.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nuton-text-share/admin/src/class.settings-api.php:28

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/text-share-options.php
    • > Network (severe)
    wp-admin/text-share-options.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: social share, text share, social, tweet share, text tweet

nuton-text-share/nuton-text-share-wordpress.php 77% from 13 tests

"Nuton Text Share WordPress" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("nuton-text-share.php" instead of "nuton-text-share-wordpress.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 198 characters long)
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,739 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP4159242790
SVG100655
PO File16464199
JavaScript25859
CSS20336

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity26.00
▷ Minimum class complexity3.00
▷ Maximum class complexity49.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods34
▷ Static methods00.00%
▷ Public methods34100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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