84% flash-toolkit

Code Review | Flash Toolkit

WordPress plugin Flash Toolkit scored84%from 54 tests.

About plugin

  • Plugin page: flash-toolkit
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Nov 14, 2016
  • Latest release: Dec 27, 2022
  • Number of updates: 19
  • Update frequency: every 117.7 days
  • Top authors: ThemeGrill (78.95%)themegrilldev (26.32%)

Code review

54 tests

User reviews

4 reviews

Install metrics

20,000+ active /441,910 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: ▲1.12MB] [CPU: ▲6.11ms] Passed 4 tests

An overview of server-side resources used by Flash Toolkit
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.44 ▲0.9849.64 ▲8.76
Dashboard /wp-admin4.47 ▲1.1656.08 ▲3.02
Posts /wp-admin/edit.php4.59 ▲1.2360.86 ▲10.31
Add New Post /wp-admin/post-new.php7.07 ▲1.19100.14 ▲2.35
Media Library /wp-admin/upload.php4.38 ▲1.1549.74 ▲12.43
All Projects /wp-admin/edit.php?post_type=portfolio4.4446.12
Categories /wp-admin/edit-tags.php?taxonomy=portfolio_cat&post_type=portfolio4.3844.18
Add Project /wp-admin/post-new.php?post_type=portfolio4.5665.73
Tags /wp-admin/edit-tags.php?taxonomy=portfolio_tag&post_type=portfolio4.3843.66

Server storage [IO: ▲2.68MB] [DB: ▲0.01MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 168 new files
Database: no new tables, 22 new options
New WordPress options
widget_themegrill_flash_testimonial
widget_themegrill_flash_service
db_upgraded
widget_themegrill_flash_heading
widget_recent-posts
widget_theysaidso_widget
flash_toolkit_meta_box_errors
widget_themegrill_flash_blog
widget_recent-comments
theysaidso_admin_options
...

Browser metrics Passed 4 tests

Checking browser requirements for Flash Toolkit
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,877 ▲13113.62 ▼0.671.90 ▲0.2143.57 ▲3.33
Dashboard /wp-admin2,277 ▲885.35 ▲0.42108.74 ▼3.9742.24 ▼0.64
Posts /wp-admin/edit.php2,149 ▲572.66 ▲0.6246.15 ▲4.1637.36 ▲1.53
Add New Post /wp-admin/post-new.php1,581 ▲6223.70 ▲0.44735.88 ▲35.5755.25 ▼11.06
Media Library /wp-admin/upload.php1,459 ▲714.58 ▲0.36105.25 ▼7.5944.36 ▼2.18
All Projects /wp-admin/edit.php?post_type=portfolio1,1522.4639.1234.05
Categories /wp-admin/edit-tags.php?taxonomy=portfolio_cat&post_type=portfolio1,3442.4540.9132.63
Add Project /wp-admin/post-new.php?post_type=portfolio2,9527.71200.5780.34
Tags /wp-admin/edit-tags.php?taxonomy=portfolio_tag&post_type=portfolio1,3172.4132.1432.00

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 22 options
    • widget_themegrill_flash_about
    • widget_themegrill_flash_blog
    • widget_themegrill_flash_heading
    • flash_toolkit_meta_box_errors
    • widget_theysaidso_widget
    • widget_themegrill_flash_logo
    • widget_themegrill_flash_portfolio
    • can_compress_scripts
    • db_upgraded
    • widget_themegrill_flash_cta
    • ...

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/flash-toolkit/includes/libraries/wp-background-process.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/flash-toolkit/includes/abstracts/abstract-flash-widget.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: flash, themegrill, theme, toolkit

flash-toolkit/flash-toolkit.php Passed 13 tests

The main PHP script in "Flash Toolkit" version 1.2.4 is automatically included on every request by WordPress
68 characters long description:
Flash Toolkit is a companion for Flash WordPress theme by ThemeGrill

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
Success! There were no dangerous files found in this plugin34,102 lines of code in 106 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript212,7611,23611,872
JSON3109,956
PHP618962,0565,745
Sass925203,802
SVG1002,671
XML15542
CSS100314

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity10.47
▷ Minimum class complexity1.00
▷ Maximum class complexity86.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes32
▷ Abstract classes39.38%
▷ Concrete classes2990.62%
▷ Final classes13.45%
Methods186
▷ Static methods5127.42%
▷ Public methods14779.03%
▷ Protected methods2111.29%
▷ Private methods189.68%
Functions36
▷ Named functions36100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
50 PNG files occupy 0.09MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/testimonial-single-column.png0.34KB0.34KB0.00%
assets/images/call-to-action-with-two-button.png0.27KB0.28KB0.00%
assets/images/blog-style-three.png0.49KB0.50KB0.00%
assets/images/testimonial-with-no-image.png0.44KB0.45KB0.00%
assets/images/col-3.png15.71KB0.38KB▼ 97.61%