84% fanimani-pl

Code Review | FaniMani.pl

WordPress plugin FaniMani.pl scored84%from 54 tests.

About plugin

  • Plugin page: fanimani-pl
  • Plugin version: 1.1.14
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.4
  • WordPress version: 6.3.1
  • First release: Apr 26, 2019
  • Latest release: Nov 9, 2023
  • Number of updates: 16
  • Update frequency: every 104.2 days
  • Top authors: fanimanipl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /2,869 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.46ms] Passed 4 tests

Analyzing server-side resources used by FaniMani.pl
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0740.39 ▲2.78
Dashboard /wp-admin3.38 ▲0.0847.57 ▼1.40
Posts /wp-admin/edit.php3.44 ▲0.0744.42 ▼1.57
Add New Post /wp-admin/post-new.php5.98 ▲0.0983.34 ▼9.63
Media Library /wp-admin/upload.php3.31 ▲0.0735.20 ▲3.87
FaniMani.pl /wp-admin/options-general.php?page=fanimani-settings3.2831.00

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

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

Browser metrics Passed 4 tests

FaniMani.pl: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲2914.33 ▲0.011.69 ▼0.1043.86 ▲2.92
Dashboard /wp-admin2,221 ▲445.84 ▲0.2685.94 ▼7.6438.16 ▼6.81
Posts /wp-admin/edit.php2,125 ▲252.30 ▲0.3235.15 ▼4.2334.92 ▲0.34
Add New Post /wp-admin/post-new.php1,543 ▲1723.17 ▼0.07626.47 ▼58.4434.25 ▼22.00
Media Library /wp-admin/upload.php1,426 ▲264.45 ▲0.25100.42 ▼0.1443.28 ▲1.25
FaniMani.pl /wp-admin/options-general.php?page=fanimani-settings8501.9529.8124.02

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_next_scheduled() in wp-content/plugins/fanimani-pl/fanimani.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 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
6 plugin tags: fundraising, fanipay, faniseo, widget, ngo...

fanimani-pl/fanimani.php 85% from 13 tests

"FaniMani.pl" version 1.1.14's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("fanimani-pl.php" instead of "fanimani.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin534 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP15718382
PO File13235131
JavaScript12021

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions14
▷ Named functions14100.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 files were detected