84% storefront-lines-and-circles

Code Review | Storefront - Lines and Circles Animation

WordPress plugin Storefront - Lines and Circles Animation scored84%from 54 tests.

About plugin

  • Plugin page: storefront-lines-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.5.2
  • WordPress version: 6.3.1
  • First release: Jun 30, 2016
  • Latest release: Sep 3, 2016
  • Number of updates: 6
  • Update frequency: every 12.3 days
  • Top authors: shramee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,205 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.07MB] [CPU: ▼4.71ms] Passed 4 tests

This is a short check of server-side resources used by Storefront - Lines and Circles Animation
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0837.34 ▲0.61
Dashboard /wp-admin3.39 ▲0.0453.92 ▼9.05
Posts /wp-admin/edit.php3.50 ▲0.1449.32 ▲4.63
Add New Post /wp-admin/post-new.php5.97 ▲0.0882.21 ▼8.87
Media Library /wp-admin/upload.php3.31 ▲0.0835.06 ▼1.54

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
activation_notice
widget_recent-posts
widget_recent-comments
storefront-lines-and-circles-version

Browser metrics Passed 4 tests

This is an overview of browser requirements for Storefront - Lines and Circles Animation
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲9514.74 ▲0.372.08 ▲0.1944.14 ▼0.25
Dashboard /wp-admin2,222 ▲314.85 ▼1.05114.85 ▲0.5043.34 ▼1.22
Posts /wp-admin/edit.php2,104 ▲332.05 ▲0.0134.46 ▼0.3232.81 ▼3.41
Add New Post /wp-admin/post-new.php1,544 ▲1123.24 ▼0.21635.71 ▼31.0852.44 ▲1.25
Media Library /wp-admin/upload.php1,401 ▲134.31 ▲0.1896.58 ▼16.3840.98 ▼6.85

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 8 options in the database
    • activation_notice
    • storefront-lines-and-circles-version
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

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)
Everything seems fine, however this is by no means an exhaustive test

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
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Storefront_Lines_And_Circles_Abstract' not found in wp-content/plugins/storefront-lines-and-circles/includes/class-public.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Storefront_Lines_And_Circles_Abstract' not found in wp-content/plugins/storefront-lines-and-circles/includes/class-customizer-fields.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/storefront-lines-and-circles/includes/class-images-control.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Storefront_Lines_And_Circles_Abstract' not found in wp-content/plugins/storefront-lines-and-circles/includes/class-admin.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: storefront animation, shop animation, wpdevelopmentme, shramee, lines...

storefront-lines-and-circles/storefront-lines-and-circles.php Passed 13 tests

The principal PHP file in "Storefront - Lines and Circles Animation" v. 1.0.0 is loaded by WordPress automatically on each request
75 characters long description:
Adds awesome lines and circles animation on the front page of your website!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected487 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP8139386438
CSS18040
JavaScript3169

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity6.33
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes116.67%
▷ Concrete classes583.33%
▷ Final classes480.00%
Methods32
▷ Static methods13.12%
▷ Public methods3196.88%
▷ Protected methods00.00%
▷ Private methods13.12%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/admin/option-1.png0.49KB0.18KB▼ 62.20%
assets/img/admin/option-3.png0.64KB0.25KB▼ 61.35%
assets/img/admin/option-2.png0.63KB0.24KB▼ 61.41%
assets/img/admin/option-4.png0.54KB0.22KB▼ 59.31%