84% f6s

Code Review | f6s Wordpress Plugin

WordPress plugin f6s Wordpress Plugin scored84%from 54 tests.

About plugin

  • Plugin page: f6s
  • Plugin version: 0.5.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.4
  • WordPress version: 6.3.1
  • First release: Nov 16, 2012
  • Latest release: Apr 29, 2015
  • Number of updates: 18
  • Update frequency: every 50.1 days
  • Top authors: f6s (83.33%)Melchiah (22.22%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,868 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.26MB] [CPU: ▼15.02ms] Passed 4 tests

An overview of server-side resources used by f6s Wordpress Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.91 ▼0.68
Dashboard /wp-admin3.32 ▲0.0146.94 ▼4.73
Posts /wp-admin/edit.php3.37 ▲0.0145.90 ▼8.29
Add New Post /wp-admin/post-new.php4.83 ▼1.0660.30 ▼45.60
Media Library /wp-admin/upload.php3.24 ▲0.0136.60 ▼1.45
f6s Plugin /wp-admin/options-general.php?page=f6s-plugin-settings3.2136.13

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for f6s Wordpress Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.35 ▼0.031.93 ▼0.0740.54 ▲1.95
Dashboard /wp-admin2,198 ▲275.58 ▲0.0087.28 ▼3.9541.13 ▲1.68
Posts /wp-admin/edit.php2,109 ▲62.02 ▼0.0837.78 ▼6.9037.41 ▼2.52
Add New Post /wp-admin/post-new.php1,531 ▼023.47 ▲0.33686.51 ▲49.6768.67 ▲14.84
Media Library /wp-admin/upload.php1,403 ▲34.16 ▼0.06104.17 ▼7.9255.84 ▲10.48
f6s Plugin /wp-admin/options-general.php?page=f6s-plugin-settings8122.0024.9827.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/f6s/f6s.php on line 19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/f6s/f6s.php:19

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: deals, data, mentors, entrepreneurs, profile...

f6s/f6s.php Passed 13 tests

The entry point to "f6s Wordpress Plugin" version 0.5.4 is a PHP file that has certain tags in its header comment area
43 characters long description:
Integrate f6s data into your WordPress Site

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected433 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP17825390
JavaScript111337
CSS1116

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.66
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%
Functions21
▷ Named functions21100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo.png0.99KB0.79KB▼ 20.04%