84% viralrank

Code Review | ViralRank™

WordPress plugin ViralRank™ scored84%from 54 tests.

About plugin

  • Plugin page: viralrank
  • Plugin version: 0.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8
  • WordPress version: 6.3.1
  • First release: Jul 12, 2013
  • Latest release: Dec 14, 2013
  • Number of updates: 14
  • Update frequency: every 11.1 days
  • Top authors: rexdixon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /964 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▲62.00ms] Passed 4 tests

A check of server-side resources used by ViralRank™
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.00280.71 ▲245.89
Dashboard /wp-admin3.31 ▲0.0046.41 ▼2.19
Posts /wp-admin/edit.php3.36 ▲0.0051.02 ▲2.65
Add New Post /wp-admin/post-new.php5.89 ▲0.00869.51 ▲774.85
Media Library /wp-admin/upload.php3.23 ▲0.0036.46 ▲1.65

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by ViralRank™
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲5513.56 ▼0.691.79 ▼0.0536.56 ▼6.91
Dashboard /wp-admin2,206 ▲205.89 ▲0.92111.53 ▼2.0841.43 ▼0.44
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0539.71 ▼0.4434.35 ▼1.33
Add New Post /wp-admin/post-new.php1,533 ▲1923.45 ▲5.88665.34 ▼18.9458.12 ▲7.21
Media Library /wp-admin/upload.php1,385 ▼04.18 ▼0.0791.53 ▼12.7343.69 ▼1.05

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

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 | 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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/viralrank/viralrank.php:26

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 Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: viralrank, ranking, social

viralrank/viralrank.php Passed 13 tests

The principal PHP file in "ViralRank™" v. 0.1.6 is loaded by WordPress automatically on each request
75 characters long description:
This plugin does one thing - it will show the ViralRank of your blog posts.

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
No dangerous file extensions were detected15 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP132115

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
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%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin