83% fw-anker

Code Review | FW Anker

WordPress plugin FW Anker scored83%from 54 tests.

About plugin

  • Plugin page: fw-anker
  • Plugin version: 1.2.6
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.4-5.2.4
  • WordPress version: 6.3.1
  • First release: Mar 10, 2013
  • Latest release: Oct 28, 2019
  • Number of updates: 5
  • Update frequency: every 484.6 days
  • Top authors: Tikolan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,885 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼13.34ms] Passed 4 tests

An overview of server-side resources used by FW Anker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.78 ▼0.75
Dashboard /wp-admin3.31 ▼0.0446.34 ▼19.88
Posts /wp-admin/edit.php3.36 ▲0.0046.92 ▼5.51
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.36 ▼27.23
Media Library /wp-admin/upload.php3.24 ▲0.0036.82 ▲1.23

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

FW Anker: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.34 ▲0.151.73 ▲0.0144.10 ▼0.01
Dashboard /wp-admin2,192 ▲125.64 ▼0.0491.48 ▼8.0438.40 ▼5.63
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0237.61 ▼0.1334.52 ▼2.84
Add New Post /wp-admin/post-new.php1,526 ▼222.87 ▼0.38692.36 ▲52.1057.61 ▼9.86
Media Library /wp-admin/upload.php1,400 ▲34.18 ▼0.07106.34 ▲4.1246.51 ▼0.10

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/fw-anker/fwanker.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === fw-anker === )
The official readme.txt might help

fw-anker/fwanker.php 85% from 13 tests

The main file in "FW Anker" v. 1.2.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("fw-anker.php" instead of "fwanker.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 150 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected7 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1397

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
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