84% fancynav-elementor

Code Review | FancyNav - Elementor

WordPress plugin FancyNav - Elementor scored 84% from 54 tests.

About plugin

  • Plugin page: fancynav-elementor
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4
  • WordPress version: 6.3.1
  • First release: Apr 5, 2020
  • Latest release: Apr 5, 2020
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: kratzik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 588 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by FancyNav - Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.20 ▼3.08
Dashboard /wp-admin3.32 ▲0.0244.78 ▼4.55
Posts /wp-admin/edit.php3.37 ▲0.0245.50 ▼3.97
Add New Post /wp-admin/post-new.php5.90 ▲0.0292.01 ▼7.79
Media Library /wp-admin/upload.php3.25 ▲0.0236.51 ▲4.10

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for FancyNav - Elementor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8314.47 ▲0.102.01 ▲0.1342.89 ▼6.16
Dashboard /wp-admin2,221 ▲365.84 ▼0.0298.29 ▲0.1539.92 ▼6.36
Posts /wp-admin/edit.php2,106 ▲172.04 ▲0.0336.24 ▼5.8536.34 ▲0.43
Add New Post /wp-admin/post-new.php1,527 ▲717.76 ▼5.46654.22 ▲36.2050.80 ▼5.24
Media Library /wp-admin/upload.php1,409 ▲184.23 ▲0.0596.56 ▼4.2541.92 ▼1.44

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% 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)
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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ElementorFancyNav\\wp_register_style() in wp-content/plugins/fancynav-elementor/plugin.php:47

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt is a good inspiration

fancynav-elementor/fancynav-elementor.php Passed 13 tests

The principal PHP file in "FancyNav - Elementor" v. 1.1.0 is loaded by WordPress automatically on each request
38 characters long description:
Mobile Navigation Widget for Elementor

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
Good job! No executable or dangerous file extensions detected1,438 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS267167915
PHP465104296
JavaScript25674216
SVG11011

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity3.67
▷ Minimum class complexity2.00
▷ Maximum class complexity7.00
Average method complexity1.42
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods19
▷ Static methods15.26%
▷ Public methods1684.21%
▷ Protected methods210.53%
▷ Private methods15.26%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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