10% floecomment-dofollow

Code Review | FloeComment

WordPress plugin FloeComment scored10%from 54 tests.

About plugin

  • Plugin page: floecomment-dofollow
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.6
  • WordPress version: 6.3.1
  • First release: Sep 22, 2013
  • Latest release: Sep 23, 2013
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: Floesub (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,007 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/floecomment-dofollow/floecomment.php+14
    array_key_exists() expects parameter 2 to be array, bool given

Server metrics [RAM: ▼1.86MB] [CPU: ▼52.72ms] Passed 4 tests

An overview of server-side resources used by FloeComment
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.13 ▼1.335.74 ▼34.37
Dashboard /wp-admin2.15 ▼1.156.65 ▼50.71
Posts /wp-admin/edit.php2.15 ▼1.207.81 ▼41.35
Add New Post /wp-admin/post-new.php2.15 ▼3.746.89 ▼84.45
Media Library /wp-admin/upload.php2.15 ▼1.086.84 ▼26.67

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for FloeComment
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,889 ▲14313.61 ▼0.614.84 ▲3.0343.62 ▼0.37
Dashboard /wp-admin2,206 ▲155.83 ▼0.02111.56 ▲3.5040.54 ▼2.46
Posts /wp-admin/edit.php2,098 ▲92.02 ▼0.0338.87 ▼2.6035.88 ▲0.92
Add New Post /wp-admin/post-new.php1,542 ▲2818.18 ▲0.64613.24 ▲4.5360.30 ▲6.47
Media Library /wp-admin/upload.php1,388 ▼34.18 ▼0.0196.40 ▼1.8142.72 ▼0.96
FloeComment /wp-admin/floecomment.php260.440.0714.36

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/floecomment-dofollow/floecomment.php+14
    array_key_exists() expects parameter 2 to be array, bool given
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/floecomment-dofollow/floecomment.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/floecomment.php
    • > Network (severe)
    wp-admin/floecomment.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === floecomment-dofollow === )
The official readme.txt is a good inspiration

floecomment-dofollow/floecomment.php 85% from 13 tests

This is the main PHP file of "FloeComment" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 147 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("floecomment-dofollow.php" instead of "floecomment.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin387 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13139164
JavaScript163182132
PO File1232391

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.91
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin