84% flexslider-for-native-gallery

Code Review | Flexslider for Wordpress Native Gallery

WordPress plugin Flexslider for Wordpress Native Gallery scored84%from 54 tests.

About plugin

  • Plugin page: flexslider-for-na...
  • Plugin version: 1.9
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 19, 2015
  • Latest release: Sep 29, 2017
  • Number of updates: 22
  • Update frequency: every 40.6 days
  • Top authors: sarankumar (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /6,665 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.01MB] [CPU: ▼10.66ms] Passed 4 tests

A check of server-side resources used by Flexslider for Wordpress Native Gallery
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.54 ▼3.67
Dashboard /wp-admin3.33 ▼0.0244.70 ▼15.65
Posts /wp-admin/edit.php3.38 ▲0.0248.49 ▲0.57
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.16 ▼22.46
Media Library /wp-admin/upload.php3.25 ▲0.0233.06 ▼0.84

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Flexslider for Wordpress Native Gallery
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.201.56 ▼0.0741.50 ▲1.37
Dashboard /wp-admin2,203 ▲154.87 ▼1.00113.36 ▲12.9738.95 ▼1.94
Posts /wp-admin/edit.php2,092 ▲31.97 ▼0.0638.26 ▼0.7135.77 ▼3.22
Add New Post /wp-admin/post-new.php1,533 ▼623.02 ▼0.23621.51 ▼4.4852.10 ▲0.11
Media Library /wp-admin/upload.php1,382 ▼94.39 ▲0.1896.79 ▼0.2241.47 ▼3.80

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

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 fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flexslider-for-native-gallery/flex-admin.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
There were no plugin tags found

flexslider-for-native-gallery/fsng-index.php 92% from 13 tests

The main PHP file in "Flexslider for Wordpress Native Gallery" ver. 1.9 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("flexslider-for-native-gallery.php" instead of "fsng-index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin238 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP24026127
CSS192891
SVG10019
JavaScript1041

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.25
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 images were found in this plugin