84% arconix-flexslider

Code Review | Arconix Flexslider

WordPress plugin Arconix Flexslider scored84%from 54 tests.

About plugin

  • Plugin page: arconix-flexslider
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 6.3.1
  • First release: Mar 23, 2012
  • Latest release: Mar 31, 2021
  • Number of updates: 64
  • Update frequency: every 51.5 days
  • Top authors: jgardner03 (59.38%)tychesoftwares (42.19%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active /32,979 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼6.85ms] Passed 4 tests

Analyzing server-side resources used by Arconix Flexslider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1140.54 ▼0.10
Dashboard /wp-admin3.49 ▲0.19119.84 ▲64.41
Posts /wp-admin/edit.php3.52 ▲0.1651.77 ▼19.87
Add New Post /wp-admin/post-new.php6.01 ▲0.1291.89 ▼10.34
Media Library /wp-admin/upload.php3.33 ▲0.1041.22 ▲2.93

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_arconix-flexslider
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Arconix Flexslider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,878 ▲11713.28 ▼1.104.88 ▲3.1342.04 ▼0.39
Dashboard /wp-admin2,279 ▲795.82 ▲0.95100.60 ▼6.8240.75 ▼4.08
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0535.76 ▼3.3333.41 ▼3.84
Add New Post /wp-admin/post-new.php1,408 ▼14517.97 ▼5.36613.05 ▲14.4945.92 ▼12.50
Media Library /wp-admin/upload.php1,401 ▲14.29 ▲0.07111.90 ▲2.2546.51 ▼0.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_arconix-flexslider
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/arconix-flexslider/includes/class-arconix-flexslider-widget.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/arconix-flexslider/plugin.php:84

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% 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
7 plugin tags: portfolio, responsive, testimonial, slider, carousel...

arconix-flexslider/plugin.php 92% from 13 tests

The main PHP script in "Arconix Flexslider" version 1.1.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("arconix-flexslider.php" instead of "plugin.php")

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 plugin917 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP4118281406
LESS555112265
CSS2218163
JavaScript361283

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity13.50
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods23
▷ Static methods14.35%
▷ Public methods2191.30%
▷ Protected methods00.00%
▷ Private methods28.70%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.52MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/css/images/trello-16x16.png1.43KB0.82KB▼ 42.64%
screenshot-3.png10.46KB5.71KB▼ 45.38%
includes/css/images/page-16x16.png0.33KB0.46KB0.00%
screenshot-4.png438.59KB131.14KB▼ 70.10%
screenshot-1.png42.96KB13.05KB▼ 69.62%