78% swiftload

Code Review | Swiftload

WordPress plugin Swiftload scored78%from 54 tests.

About plugin

  • Plugin page: swiftload
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.3-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 21, 2023
  • Latest release: Sep 21, 2023
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: tadeubrasill (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /44 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.82ms] Passed 4 tests

This is a short check of server-side resources used by Swiftload
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.29 ▲0.31
Dashboard /wp-admin3.33 ▲0.0252.13 ▲4.28
Posts /wp-admin/edit.php3.38 ▲0.0253.20 ▼2.71
Add New Post /wp-admin/post-new.php5.92 ▲0.0498.68 ▼9.15
Media Library /wp-admin/upload.php3.25 ▲0.0241.63 ▲6.04
SwiftLoad /wp-admin/options-general.php?page=swiftload3.2436.93

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Swiftload
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,921 ▲16013.97 ▼0.6014.94 ▲12.7343.01 ▼4.80
Dashboard /wp-admin2,241 ▲385.09 ▼0.79118.12 ▲10.3141.06 ▼1.28
Posts /wp-admin/edit.php2,128 ▲282.36 ▲0.3639.04 ▲1.5636.13 ▲0.77
Add New Post /wp-admin/post-new.php1,547 ▲223.09 ▲0.01607.67 ▼27.1934.86 ▼29.62
Media Library /wp-admin/upload.php1,427 ▲274.32 ▲0.10111.63 ▲6.7549.23 ▼0.34
SwiftLoad /wp-admin/options-general.php?page=swiftload1,2932.6165.2130.00

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=swiftload
    • > Notice in wp-content/plugins/swiftload/admin/swiftload-admin.php+69
    Trying to access array offset on value of type bool

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 take a closer look at the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/swiftload/admin/templates/swiftload-admin-page.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/swiftload/admin/swiftload-admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/swiftload/swiftload.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: load, preloader

swiftload/swiftload.php 85% from 13 tests

The main file in "Swiftload" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: The domain path folder does not exist ("/languages")

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 plugin273 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP63526208
CSS15038
JavaScript22027

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
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
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods777.78%
▷ Protected methods00.00%
▷ Private methods222.22%
Functions10
▷ Named functions10100.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
There were not PNG files found in your plugin