84% freefeatures

Code Review | FreeFeatures

WordPress plugin FreeFeatures scored 84% from 54 tests.

About plugin

  • Plugin page: freefeatures
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 13, 2021
  • Latest release: Sep 18, 2023
  • Number of updates: 33
  • Update frequency: every 26.0 days
  • Top authors: freefeatures (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 764 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by FreeFeatures
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.56 ▲3.07
Dashboard /wp-admin3.32 ▲0.0246.60 ▼6.40
Posts /wp-admin/edit.php3.37 ▲0.0253.18 ▲6.94
Add New Post /wp-admin/post-new.php5.92 ▲0.04103.38 ▲18.44
Media Library /wp-admin/upload.php3.24 ▲0.0239.39 ▲3.92

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

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

Browser metrics Passed 4 tests

Checking browser requirements for FreeFeatures
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,029 ▲29436.79 ▲22.2511.60 ▲9.6737.99 ▼13.35
Dashboard /wp-admin2,392 ▲20427.63 ▲22.71469.37 ▲352.4642.39 ▼5.09
Posts /wp-admin/edit.php2,206 ▲11727.47 ▲25.42219.20 ▲184.5734.45 ▼3.62
Add New Post /wp-admin/post-new.php6,576 ▲5,03944.34 ▲26.131,015.63 ▲382.2535.24 ▼34.82
Media Library /wp-admin/upload.php1,523 ▲13230.10 ▲25.88292.77 ▲194.9547.88 ▲3.87

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/freefeatures/templates/app.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/freefeatures/functions.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Content search), #2 (Content preview), #3 (Content download)
The official readme.txt is a good inspiration

freefeatures/functions.php 92% from 13 tests

The main PHP script in "FreeFeatures" version 2.0.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("freefeatures.php" instead of "functions.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin109 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP3121593
SVG11013
CSS1002
JavaScript2184331

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions5
▷ Named functions5100.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
No PNG images were found in this plugin