78% fartscroll

Code Review | Fartscroll

WordPress plugin Fartscroll scored78%from 54 tests.

About plugin

  • Plugin page: fartscroll
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.4.1
  • WordPress version: 6.3.1
  • First release: May 11, 2013
  • Latest release: Jun 7, 2020
  • Number of updates: 3
  • Update frequency: every 861.3 days
  • Top authors: ozh (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active /2,141 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Server-side resources used by Fartscroll
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.04 ▼5.37
Dashboard /wp-admin3.33 ▲0.0345.00 ▼5.08
Posts /wp-admin/edit.php3.38 ▲0.0249.59 ▲0.35
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.31 ▼8.14
Media Library /wp-admin/upload.php3.25 ▲0.0237.97 ▲4.04
Fartscroll /wp-admin/options-general.php?page=fartscroll3.1930.14

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fartscroll
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,973 ▲23813.68 ▼1.003.31 ▲1.3139.37 ▼5.88
Dashboard /wp-admin2,213 ▲255.90 ▲1.00111.39 ▲8.6139.00 ▼4.33
Posts /wp-admin/edit.php2,096 ▲102.04 ▲0.0239.48 ▲4.6335.07 ▼0.78
Add New Post /wp-admin/post-new.php1,544 ▲2418.22 ▼4.69600.36 ▼3.5565.50 ▲15.06
Media Library /wp-admin/upload.php1,392 ▲14.21 ▼0.1097.79 ▼10.1941.71 ▼3.74
Fartscroll /wp-admin/options-general.php?page=fartscroll8122.0226.7127.66

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=fartscroll
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=fartscroll
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fartscroll/fartscroll.php:18

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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: theonion, fartscroll, fart, scroll, smell...

fartscroll/fartscroll.php 92% from 13 tests

The main PHP script in "Fartscroll" version 1.0.2 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 196 characters long)

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
Everything looks great! No dangerous files found in this plugin161 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1172791
JavaScript15167
Markdown1203

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin