62% wpcashlinks-lite

Code Review | WPCashLinks LITE

WordPress plugin WPCashLinks LITE scored62%from 54 tests.

About plugin

  • Plugin page: wpcashlinks-lite
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.8
  • WordPress version: 6.3.1
  • First release: May 1, 2017
  • Latest release: Jul 16, 2017
  • Number of updates: 9
  • Update frequency: every 9.6 days
  • Top authors: armernic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,153 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼8.11ms] Passed 4 tests

An overview of server-side resources used by WPCashLinks LITE
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0738.08 ▼4.75
Dashboard /wp-admin3.38 ▲0.0745.62 ▼5.04
Posts /wp-admin/edit.php3.49 ▲0.1349.62 ▼0.48
Add New Post /wp-admin/post-new.php5.98 ▲0.0984.05 ▼19.88
Media Library /wp-admin/upload.php3.30 ▲0.0734.73 ▼2.75
WPCashLinksLITE /wp-admin/admin.php?page=wpcashlinks_home3.2832.00
Settings /wp-admin/admin.php?page=wpcl-settings3.2831.88

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 150 new files
Database: 1 new table, 7 new options
New tables
wp_wpcl_keywords
New WordPress options
widget_recent-comments
wpcl_options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPCashLinks LITE
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,923 ▲17714.06 ▼0.144.61 ▲2.9141.01 ▲2.78
Dashboard /wp-admin2,246 ▲585.12 ▲0.27111.25 ▲9.6343.34 ▼2.60
Posts /wp-admin/edit.php2,132 ▲432.26 ▲0.2237.58 ▼1.8933.43 ▼5.09
Add New Post /wp-admin/post-new.php1,551 ▲3123.19 ▲0.02641.20 ▼7.2734.47 ▼31.20
Media Library /wp-admin/upload.php1,428 ▲404.34 ▲0.1194.33 ▼18.6440.70 ▼6.50
WPCashLinksLITE /wp-admin/admin.php?page=wpcashlinks_home1,0251.8025.9224.99
Settings /wp-admin/admin.php?page=wpcl-settings1,0541.8023.0423.91

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie tables detected upon uninstall: 1 table
    • wp_wpcl_keywords
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

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)
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wpcashlinks-lite/public/partials/wpcashlinks-public-display.php
    • > /wp-content/plugins/wpcashlinks-lite/admin/partials/wpcashlinks-admin-sidebar.php
    • > /wp-content/plugins/wpcashlinks-lite/admin/partials/wpcashlinks-admin-help.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wpcashlinks-lite/admin/partials/wpcashlinks-admin-settings.php:44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wpcashlinks-lite/admin/partials/wpcashlinks-admin-display.php:102

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=wpcashlinks_home
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=wpcashlinks_home 212:8 Uncaught TypeError: $ is not a function

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: silo, keyword

wpcashlinks-lite/wpcashlinks.php 85% from 13 tests

Analyzing the main PHP file in "WPCashLinks LITE" version 1.0.3
The following require your attention:
  • 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: Name the main plugin file the same as the plugin slug ("wpcashlinks-lite.php" instead of "wpcashlinks.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin2,499 lines of code in 141 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript124824631,942
PHP15194455549
CSS2588

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity3.43
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity1.59
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2482.76%
▷ Protected methods00.00%
▷ Private methods517.24%
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

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/css/edit.png0.68KB0.70KB0.00%