83% viralparsecom-viral-link-creator

Code Review | ViraParse.Com Viral Link Creator

WordPress plugin ViraParse.Com Viral Link Creator scored83%from 54 tests.

About plugin

  • Plugin page: viralparsecom-vir...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-3.9
  • WordPress version: 6.3.1
  • First release: May 23, 2014
  • Latest release: May 24, 2014
  • Number of updates: 2
  • Update frequency: every 7.5 days
  • Top authors: ViralParse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,703 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.67ms] Passed 4 tests

Server-side resources used by ViraParse.Com Viral Link Creator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.33 ▼7.02
Dashboard /wp-admin3.34 ▲0.0444.43 ▼5.65
Posts /wp-admin/edit.php3.39 ▲0.0448.01 ▲2.76
Add New Post /wp-admin/post-new.php5.92 ▲0.0481.55 ▼8.28
Media Library /wp-admin/upload.php3.27 ▲0.0432.92 ▼1.71

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for ViraParse.Com Viral Link Creator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲5713.22 ▼1.422.07 ▲0.0338.75 ▼4.79
Dashboard /wp-admin2,207 ▲194.87 ▼0.07106.59 ▼10.7937.78 ▼9.95
Posts /wp-admin/edit.php2,090 ▲12.05 ▼0.0038.11 ▲1.3233.37 ▼2.23
Add New Post /wp-admin/post-new.php1,538 ▲2422.68 ▲5.05634.95 ▼37.4845.93 ▼7.56
Media Library /wp-admin/upload.php1,392 ▲14.23 ▲0.0091.92 ▼19.9938.83 ▼9.11

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 did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/viralparsecom-viral-link-creator/secure.php
    • > /wp-content/plugins/viralparsecom-viral-link-creator/viralparse.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (http://viralparse.com/wpplg/shot/screenshot.png) image missing
The official readme.txt might help

viralparsecom-viral-link-creator/viralparse.php 85% from 13 tests

The main PHP script in "ViraParse.Com Viral Link Creator" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("viralparsecom-viral-link-creator.php" instead of "viralparse.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 330 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin437 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23335437

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.89
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

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
contents/logo.png5.44KB3.15KB▼ 42.22%
contents/validate.png0.85KB0.80KB▼ 6.53%