83% remove-marketo-form-styles

Code Review | Remove Marketo Form Styles

WordPress plugin Remove Marketo Form Styles scored83%from 54 tests.

About plugin

  • Plugin page: remove-marketo-fo...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.83-4.95
  • WordPress version: 6.3.1
  • First release: May 3, 2018
  • Latest release: May 3, 2018
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: rodhomor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /628 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼8.35ms] Passed 4 tests

An overview of server-side resources used by Remove Marketo Form Styles
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.05 ▼8.43
Dashboard /wp-admin3.31 ▼0.0344.99 ▼13.26
Posts /wp-admin/edit.php3.36 ▲0.0046.98 ▲4.73
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.00 ▼11.85
Media Library /wp-admin/upload.php3.24 ▲0.0034.05 ▲0.13

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Remove Marketo Form Styles
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲14613.63 ▼0.758.42 ▲6.5056.12 ▲1.05
Dashboard /wp-admin2,203 ▲174.87 ▼1.04112.13 ▼5.0138.89 ▼3.20
Posts /wp-admin/edit.php2,086 ▼31.98 ▼0.0436.14 ▲1.5333.19 ▼0.70
Add New Post /wp-admin/post-new.php1,537 ▲423.37 ▲0.36681.88 ▲50.5561.37 ▲6.12
Media Library /wp-admin/upload.php1,388 ▼34.18 ▼0.0395.11 ▼1.6142.36 ▲0.17

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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 items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/remove-marketo-form-styles/remove-marketo-form-styles.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Stable tag: Not defined
  • Donate link: Invalid URI found ("")
You can look at the official readme.txt

remove-marketo-form-styles/remove-marketo-form-styles.php 85% from 13 tests

The main PHP script in "Remove Marketo Form Styles" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 200 characters long)
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

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 detected35 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript161020
PHP1112015

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin