89% awcf7-stop-spinning

Code Review | Spinner Fix Stop Spinning for Contact Form 7

WordPress plugin Spinner Fix Stop Spinning for Contact Form 7 scored 89% from 54 tests.

About plugin

  • Plugin page: awcf7-stop-spinning
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 1, 2021
  • Latest release: Jul 1, 2021
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: allroundweb2 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active / 1,936 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

Analyzing server-side resources used by Spinner Fix Stop Spinning for Contact Form 7
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.65 ▲6.26
Dashboard /wp-admin3.31 ▲0.0149.45 ▼8.87
Posts /wp-admin/edit.php3.36 ▲0.0145.58 ▼18.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.31 ▲7.30
Media Library /wp-admin/upload.php3.23 ▲0.0130.74 ▲1.52

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Spinner Fix Stop Spinning for Contact Form 7
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,921 ▲18613.52 ▼1.288.70 ▲6.9146.00 ▲0.78
Dashboard /wp-admin2,206 ▲185.80 ▼0.11104.98 ▼8.5787.18 ▲43.12
Posts /wp-admin/edit.php2,104 ▲121.98 ▼0.0136.44 ▼6.5333.63 ▼5.89
Add New Post /wp-admin/post-new.php1,536 ▲218.01 ▼5.28642.10 ▼45.9056.69 ▲1.46
Media Library /wp-admin/upload.php1,397 ▲64.09 ▼0.17111.63 ▲15.3849.76 ▲7.03

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Contributors: No tags were detected
  • Contributors: The plugin contributors field is not present
  • Plugin Name: You should set the name of your plugin on the first line ( === awcf7-stop-spinning === )
The official readme.txt is a good inspiration

awcf7-stop-spinning/awcf7-stop-spinning.php 92% from 13 tests

The main PHP file in "Spinner Fix Stop Spinning for Contact Form 7" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected37 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP152729
JavaScript1008

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions5
▷ Named functions5100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/aw-favicon.png2.20KB0.97KB▼ 55.83%