10% superlinks-ads

Code Review | Superlinks Google Ads Plugin

WordPress plugin Superlinks Google Ads Plugin scored 10% from 54 tests.

About plugin

  • Plugin page: superlinks-ads
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9
  • WordPress version: 5.9.2
  • First release: May 26, 2014
  • Latest release: Aug 5, 2014
  • Number of updates: 20
  • Update frequency: every 4.1 days
  • Top authors: Super-Links (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 2,585 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure had errors
    • > Parse error in wp-content/plugins/superlinks-ads/sp_actions.php+1110
    syntax error, unexpected end of file

Server metrics [RAM: ▼0.02MB] [CPU: ▼294.16ms] Passed 4 tests

An overview of server-side resources used by Superlinks Google Ads Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0161.17 ▲2.70
Dashboard /wp-admin3.41 ▲0.0039.47 ▲4.90
Posts /wp-admin/edit.php3.64 ▲0.0038.00 ▼13.57
Add New Post /wp-admin/post-new.php6.88 ▼0.09108.55 ▼1,157.69
Media Library /wp-admin/upload.php3.29 ▲0.0026.20 ▼8.08

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Superlinks Google Ads Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲1915.10 ▼0.935.53 ▼0.922.45 ▲0.19
Dashboard /wp-admin2,895 ▲356.11 ▼0.00119.72 ▼2.93160.38 ▼5.20
Posts /wp-admin/edit.php2,685 ▼03.23 ▼0.0165.85 ▼2.40202.53 ▼14.35
Add New Post /wp-admin/post-new.php1,661 ▲2216.52 ▼3.24431.30 ▼21.03233.44 ▲85.72
Media Library /wp-admin/upload.php1,698 ▼05.54 ▲0.08138.96 ▼3.46183.32 ▼8.83

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/superlinks-ads/superlinks-plugin.php:17
    • > PHP Parse error
      syntax error, unexpected 'else' (T_ELSE) in wp-content/plugins/superlinks-ads/sp_admin.php on line 2534
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/superlinks-ads/sp_widgets.php:3
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/superlinks-ads/sp_actions.php on line 1110

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: You are using too many tags: 45 tag instead of maximum 10
You can look at the official readme.txt

superlinks-ads/superlinks-plugin.php 92% from 13 tests

The principal PHP file in "Superlinks Google Ads Plugin" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("superlinks-ads.php" instead of "superlinks-plugin.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
No dangerous file extensions were detected3,141 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP5797753,127
JavaScript23114

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.69
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.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.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo-small.png3.06KB0.58KB▼ 81.19%
images/sl-logo-small.png5.01KB2.32KB▼ 53.74%