84% awesome-mw-wp-form-styles

Code Review | Awesome MW WP Form Styles

WordPress plugin Awesome MW WP Form Styles scored84%from 54 tests.

About plugin

  • Plugin page: awesome-mw-wp-for...
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.1-5.2.2
  • WordPress version: 6.3.1
  • First release: Jun 18, 2019
  • Latest release: Jul 9, 2019
  • Number of updates: 13
  • Update frequency: every 2.1 days
  • Top authors: olein (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,066 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

A check of server-side resources used by Awesome MW WP Form Styles
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.98 ▼6.82
Dashboard /wp-admin3.31 ▼0.0345.97 ▼14.75
Posts /wp-admin/edit.php3.36 ▲0.0044.60 ▼0.23
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.98 ▼14.69
Media Library /wp-admin/upload.php3.23 ▲0.0038.85 ▲8.00

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Awesome MW WP Form Styles
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.72 ▼0.661.56 ▼0.2338.31 ▼6.97
Dashboard /wp-admin2,203 ▲145.86 ▼0.0499.76 ▼21.9240.90 ▼3.05
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0234.93 ▼6.1631.91 ▼5.35
Add New Post /wp-admin/post-new.php1,542 ▲1418.43 ▲0.02657.65 ▲2.4054.62 ▼14.27
Media Library /wp-admin/upload.php1,382 ▼94.20 ▼0.1595.89 ▼0.2343.50 ▲0.39

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

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)
Good news, no errors were detected

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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/awesome-mw-wp-form-styles/awesome-mwwpform-styles.php:33

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
2 plugin tags: stylecss, css

awesome-mw-wp-form-styles/awesome-mwwpform-styles.php 92% from 13 tests

"Awesome MW WP Form Styles" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("awesome-mw-wp-form-styles.php" instead of "awesome-mwwpform-styles.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected2,406 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS1519352,391
PHP162615

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions2
▷ Named functions2100.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
There were not PNG files found in your plugin