10% share-tamil

Code Review | Share Tamil

WordPress plugin Share Tamil scored10%from 54 tests.

About plugin

  • Plugin page: share-tamil
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4.2
  • WordPress version: 6.3.1
  • First release: Jul 7, 2013
  • Latest release: Jul 24, 2013
  • Number of updates: 5
  • Update frequency: every 3.4 days
  • Top authors: karthikeyan_blaze (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,083 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/share-tamil/share-tamil.php+19
    Use of undefined constant WPShareTamil - assumed 'WPShareTamil' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.96MB] [CPU: ▼53.77ms] Passed 4 tests

This is a short check of server-side resources used by Share Tamil
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.61 ▼40.55
Dashboard /wp-admin2.05 ▼1.267.25 ▼43.40
Posts /wp-admin/edit.php2.05 ▼1.315.51 ▼44.44
Add New Post /wp-admin/post-new.php2.05 ▼3.846.38 ▼86.68
Media Library /wp-admin/upload.php2.05 ▼1.184.84 ▼32.41

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
share_tamil_options
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Share Tamil
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲914.72 ▲0.171.77 ▼0.2946.49 ▲2.34
Dashboard /wp-admin2,202 ▲255.54 ▼0.0088.68 ▲0.8244.70 ▲3.38
Posts /wp-admin/edit.php2,104 ▲71.99 ▼0.0436.70 ▲0.7634.72 ▼2.05
Add New Post /wp-admin/post-new.php1,529 ▼222.82 ▼0.18628.68 ▲38.4759.04 ▲8.44
Media Library /wp-admin/upload.php1,398 ▼24.26 ▲0.0396.98 ▼1.0940.77 ▼3.32
Share Tamil /wp-admin/share-tamil.php260.420.1016.75

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/share-tamil/share-tamil.php+19
    Use of undefined constant WPShareTamil - assumed 'WPShareTamil' (this will throw an Error in a future version of PHP)
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • share_tamil_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 25% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/share-tamil/share-tamil.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined variable: action_url in wp-content/plugins/share-tamil/share-tamil-admin-options.php on line 70
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/share-tamil/share-tamil-admin-options.php:72

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/share-tamil.php
    • > Network (severe)
    wp-admin/share-tamil.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: tamilmanam, tamil10, indli, techtamil, share tamil...

share-tamil/share-tamil.php Passed 13 tests

"Share Tamil" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
110 characters long description:
Add your posts to Tamilmanam, Tamil 10, Indli, Facebook, Twitter & Google Plus. Go to: Settings > Share Tamil.

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 plugin436 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25414436

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.55
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity5.57
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.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

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