89% flixy-review-product-boxes-for-affiliate-pages

Code Review | Flixy - Review & Product Boxes For Affiliate Pages

WordPress plugin Flixy - Review & Product Boxes For Affiliate Pages scored 89% from 54 tests.

About plugin

  • Plugin page: flixy-review-prod...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 12, 2020
  • Latest release: Feb 18, 2022
  • Number of updates: 8
  • Update frequency: every 80.9 days
  • Top authors: ahmadderar (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active / 827 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.31MB] [CPU: ▲6.46ms] Passed 4 tests

This is a short check of server-side resources used by Flixy - Review & Product Boxes For Affiliate Pages
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.3045.30 ▲0.71
Dashboard /wp-admin3.60 ▲0.2967.45 ▲14.47
Posts /wp-admin/edit.php3.71 ▲0.3559.03 ▲6.66
Add New Post /wp-admin/post-new.php6.23 ▲0.35103.00 ▲12.81
Media Library /wp-admin/upload.php3.52 ▲0.2940.85 ▲5.65
Add New /wp-admin/admin.php?page=flixy-affiliate3.4837.34
Flixy Boxes List /wp-admin/edit.php?post_type=fab3.5642.40
Add New /wp-admin/post-new.php?post_type=fab3.5955.09

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 109 new files
Database: no new tables, 10 new options
New WordPress options
imfab_fab-template-4_default_options
imfab_fab-template-3_default_options
widget_recent-comments
imfab_fab-template-1_default_options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
imfab_fab-template-2_default_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Flixy - Review & Product Boxes For Affiliate Pages: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,904 ▲11513.27 ▼1.211.53 ▼0.2468.66 ▲27.17
Dashboard /wp-admin2,270 ▲645.86 ▲0.98117.91 ▲11.5880.72 ▲41.70
Posts /wp-admin/edit.php2,170 ▲812.03 ▲0.0635.04 ▼7.2935.04 ▲0.70
Add New Post /wp-admin/post-new.php1,468 ▼5218.13 ▼5.19697.94 ▼42.7952.81 ▲0.68
Media Library /wp-admin/upload.php1,461 ▲704.29 ▲0.03100.33 ▲1.0187.66 ▲46.45
Add New /wp-admin/admin.php?page=flixy-affiliate9772.0228.0158.42
Flixy Boxes List /wp-admin/edit.php?post_type=fab1,1491.9834.1333.28
Add New /wp-admin/post-new.php?post_type=fab1,7553.9876.8386.49

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed: Please take inspiration from this readme.txt

flixy-review-product-boxes-for-affiliate-pages/flixy-review-product-boxes-for-affiliate-pages.php 85% from 13 tests

"Flixy - Review & Product Boxes For Affiliate Pages" version 2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 266 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin36,163 lines of code in 55 files:
LanguageFilesBlank linesComment linesLines of code
CSS244,10112317,524
SVG501211,985
JavaScript826173,556
PHP186231703,098

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions40
▷ Named functions3997.50%
▷ Anonymous functions12.50%
Constants15
▷ Global constants15100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
30 PNG files occupy 0.95MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/admin/assets/images/template-demo/template-4.png11.39KB5.83KB▼ 48.78%
templates/fab-template-1/images/flixy-boxes-te2.png77.00KB44.79KB▼ 41.83%
includes/admin/assets/css/images/ui-icons_217bc0_256x240.png4.44KB4.17KB▼ 6.02%
includes/admin/assets/css/images/ui-icons_d8e7f3_256x240.png4.44KB4.17KB▼ 6.02%
includes/admin/assets/images/template-demo/template-3-large.png70.36KB30.91KB▼ 56.06%