78% fake-traffic-blaster

Code Review | Fake Traffic Blaster

WordPress plugin Fake Traffic Blaster scored78%from 54 tests.

About plugin

  • Plugin page: fake-traffic-blaster
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.3
  • WordPress version: 6.3.1
  • First release: Feb 21, 2012
  • Latest release: Feb 21, 2012
  • Number of updates: 19
  • Update frequency: every 0.1 days
  • Top authors: hishaman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /4,247 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.03MB] [CPU: ▼4.80ms] Passed 4 tests

This is a short check of server-side resources used by Fake Traffic Blaster
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0342.84 ▲1.77
Dashboard /wp-admin3.34 ▲0.0449.87 ▼1.90
Posts /wp-admin/edit.php3.40 ▲0.0449.14 ▼4.90
Add New Post /wp-admin/post-new.php5.93 ▲0.0396.98 ▼14.16
Media Library /wp-admin/upload.php3.27 ▲0.0343.92 ▲6.38
Fake Traffic Blaster /wp-admin/options-general.php?page=fake-traffic-blaster/include/options.php3.2133.27

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fake Traffic Blaster
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲14013.74 ▼0.538.04 ▲5.7740.01 ▼9.82
Dashboard /wp-admin2,204 ▲275.64 ▼0.0290.11 ▼7.3439.79 ▼4.66
Posts /wp-admin/edit.php2,106 ▲61.98 ▼0.0640.19 ▲6.1635.43 ▼0.92
Add New Post /wp-admin/post-new.php1,542 ▲1618.35 ▼5.13633.84 ▲1.3466.06 ▲10.67
Media Library /wp-admin/upload.php1,406 ▲64.19 ▼0.0297.54 ▼13.0442.75 ▼5.97
Fake Traffic Blaster /wp-admin/options-general.php?page=fake-traffic-blaster/include/options.php1,1223.3072.4944.96

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=fake-traffic-blaster/include/options.php
    • > Notice in wp-content/plugins/fake-traffic-blaster/include/options.php+145
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/options-general.php?page=fake-traffic-blaster/include/options.php
    • > User deprecated in wp-includes/functions.php+5643
    File rss.php is deprecated since version 3.0.0! Use wp-includes/class-simplepie.php instead.

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
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/fake-traffic-blaster/fake-traffic-blaster.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fake-traffic-blaster/include/functions.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fake-traffic-blaster/include/options.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Settings page) image not found
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

fake-traffic-blaster/fake-traffic-blaster.php Passed 13 tests

The main PHP script in "Fake Traffic Blaster" version 0.1 is automatically included on every request by WordPress
42 characters long description:
Protect WordPress blogs from fake traffic.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin289 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP381113238
CSS22928
JavaScript15323

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions15
▷ Named functions15100.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
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/fb.png1.67KB1.03KB▼ 38.72%
images/paypal.png3.33KB1.82KB▼ 45.37%
images/stars.png1.22KB0.88KB▼ 28.22%
screenshot-1.png11.77KB6.41KB▼ 45.54%