84% linktexting-widget

Code Review | LinkTexting

WordPress plugin LinkTexting scored84%from 54 tests.

About plugin

  • Plugin page: linktexting-widget
  • Plugin version: 3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2.1
  • WordPress version: 6.3.1
  • First release: Feb 10, 2015
  • Latest release: Dec 19, 2015
  • Number of updates: 48
  • Update frequency: every 6.5 days
  • Top authors: LinkTexting (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,398 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by LinkTexting
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.72 ▼2.63
Dashboard /wp-admin3.31 ▲0.0150.69 ▼3.58
Posts /wp-admin/edit.php3.37 ▲0.0151.23 ▲3.49
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.82 ▼6.05
Media Library /wp-admin/upload.php3.24 ▲0.0140.17 ▲6.04

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for LinkTexting
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.28 ▼0.081.91 ▲0.2142.99 ▼1.24
Dashboard /wp-admin2,192 ▲185.66 ▲0.1293.54 ▼10.9145.89 ▲3.56
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0138.54 ▲3.1536.04 ▼4.81
Add New Post /wp-admin/post-new.php1,526 ▼523.11 ▼0.11690.12 ▲8.6056.19 ▲0.32
Media Library /wp-admin/upload.php1,391 ▼64.19 ▲0.03103.54 ▼3.4346.07 ▼0.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× 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/linktexting-widget/linktexting-widget.php:57

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% 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
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === linktexting-widget === )
The official readme.txt is a good inspiration

linktexting-widget/linktexting-widget.php Passed 13 tests

The principal PHP file in "LinkTexting" v. 3.2 is loaded by WordPress automatically on each request
60 characters long description:
A plugin for creating a text-to-dowload form for mobile apps

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin209 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS100156
PHP17945
JavaScript1008

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions3
▷ Named functions3100.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
2 PNG files occupy 0.24MB with 0.16MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/flags@2x.png184.39KB65.80KB▼ 64.31%
assets/img/flags.png64.62KB21.44KB▼ 66.82%