94% funifier

Code Review | Funifier

WordPress plugin Funifier scored 94% from 54 tests.

About plugin

  • Plugin page: funifier
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.0.1
  • WordPress version: 5.8.1
  • First release: Jul 10, 2015
  • Latest release: Jan 20, 2016
  • Number of updates: 21
  • Update frequency: every 9.2 days
  • Top authors: funifier (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 853 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼147.02ms] Passed 4 tests

An overview of server-side resources used by Funifier
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1341.22 ▲15.93
Dashboard /wp-admin3.07 ▲0.0259.69 ▼3.33
Posts /wp-admin/edit.php3.12 ▲0.0154.92 ▲5.30
Add New Post /wp-admin/post-new.php5.43 ▼0.0096.17 ▼584.96
Media Library /wp-admin/upload.php3.01 ▲0.0137.33 ▼5.10

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Funifier
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,722 ▲12615.92 ▲0.5912.59 ▼0.8549.46 ▼1.17
Dashboard /wp-admin2,979 ▲455.93 ▼0.05162.09 ▼20.28143.58 ▲19.09
Posts /wp-admin/edit.php2,776 ▲372.70 ▼0.0071.69 ▼15.4296.64 ▼3.96
Add New Post /wp-admin/post-new.php1,511 ▼7018.84 ▼0.03413.11 ▼44.77115.84 ▼9.33
Media Library /wp-admin/upload.php1,770 ▼375.01 ▼0.00157.35 ▼42.84145.55 ▲4.85

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

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
Even though no errors were found, 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
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/funifier/funifier.php:64
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/funifier/funifier-options.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: funifier, gamification, javascript, admin

funifier/funifier.php Passed 13 tests

The primary PHP file in "Funifier" version 1.1 is used by WordPress to initiate all plugin functionality
92 characters long description:
O plugin do Funifier foi criado para integração com o sistema de gamificação da empresa.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin153 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP32434120
CSS10033

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions6
▷ Named functions6100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
logo-funifier.png6.98KB4.41KB▼ 36.90%
funifier.png0.63KB0.68KB0.00%