84% easy-flexslider

Code Review | Easy Flexslider

WordPress plugin Easy Flexslider scored84%from 54 tests.

About plugin

  • Plugin page: easy-flexslider
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5.3
  • WordPress version: 6.3.1
  • First release: Jul 22, 2016
  • Latest release: Jul 20, 2016
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: amg26 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /893 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
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Easy Flexslider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0233.95 ▼6.01
Dashboard /wp-admin3.32 ▲0.0143.80 ▼3.19
Posts /wp-admin/edit.php3.37 ▲0.0147.58 ▼6.92
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.27 ▼21.47
Media Library /wp-admin/upload.php3.24 ▲0.0135.64 ▼0.54

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 61 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Easy Flexslider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲16813.64 ▼0.996.29 ▲4.5539.67 ▼2.73
Dashboard /wp-admin2,206 ▲185.90 ▲0.08118.56 ▲17.0736.82 ▼5.66
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0339.03 ▼6.0036.05 ▼2.28
Add New Post /wp-admin/post-new.php1,534 ▼923.07 ▲4.83581.71 ▼22.7056.73 ▼0.88
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0793.57 ▼8.1242.75 ▼1.50

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/easy-flexslider/easy-flexslider.php
    • > /wp-content/plugins/easy-flexslider/index.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Donate link: Please fix this invalid url: "andrewmgunn.com/donate"
The official readme.txt is a good inspiration

easy-flexslider/easy-flexslider.php Passed 13 tests

The main PHP file in "Easy Flexslider" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
41 characters long description:
Adds support for Flexslider to your site.

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
Success! There were no dangerous files found in this plugin5,130 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
HTML13224711,720
JavaScript121782951,278
SVG4001,252
CSS22579550
LESS817970298
PHP2131632

PHP code Passed 2 tests

An overview of 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.10
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/flexslider/images/bg_play_pause.png1.51KB0.52KB▼ 65.52%
inc/flexslider/demo/images/logo.png3.49KB2.21KB▼ 36.76%