84% ferank-fr

Code Review | FERank

WordPress plugin FERank scored84%from 54 tests.

About plugin

  • Plugin page: ferank-fr
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8+
  • WordPress version: 6.3.1
  • First release: Oct 29, 2014
  • Latest release: Mar 4, 2016
  • Number of updates: 16
  • Update frequency: every 30.8 days
  • Top authors: AmauriC (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,077 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.45ms] Passed 4 tests

Server-side resources used by FERank
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.30 ▼4.65
Dashboard /wp-admin3.31 ▲0.0042.42 ▼5.85
Posts /wp-admin/edit.php3.36 ▲0.0046.42 ▼2.95
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.77 ▼8.34
Media Library /wp-admin/upload.php3.23 ▲0.0034.39 ▼1.63

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for FERank
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲12013.21 ▼1.173.00 ▲1.2137.48 ▼5.16
Dashboard /wp-admin2,206 ▲154.85 ▲0.00112.54 ▲7.2442.78 ▼2.97
Posts /wp-admin/edit.php2,089 ▲32.01 ▲0.0339.26 ▲0.9535.97 ▲3.79
Add New Post /wp-admin/post-new.php1,533 ▼123.42 ▲0.47615.23 ▼69.1953.49 ▼3.48
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0396.20 ▼12.0640.84 ▼6.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

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
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ferank-fr/ferank.php:11

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tested up to: Invalid plugin version format
The official readme.txt is a good inspiration

ferank-fr/ferank.php 92% from 13 tests

"FERank" version 2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("ferank-fr.php" instead of "ferank.php")

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 detected12 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12812

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
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
No PNG files were detected