84% cxx-margin-and-padding-utility

Code Review | CSS Margin & Padding Utility

WordPress plugin CSS Margin & Padding Utility scored84%from 54 tests.

About plugin

  • Plugin page: cxx-margin-and-pa...
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.5
  • WordPress version: 6.3.1
  • First release: Nov 29, 2016
  • Latest release: May 26, 2017
  • Number of updates: 23
  • Update frequency: every 7.9 days
  • Top authors: Jakobodb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,960 total downloads


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.01MB] [CPU: ▼4.55ms] Passed 4 tests

Server-side resources used by CSS Margin & Padding Utility
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.89 ▼6.04
Dashboard /wp-admin3.31 ▲0.0143.45 ▼1.91
Posts /wp-admin/edit.php3.36 ▲0.0044.58 ▼1.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.34 ▼8.29
Media Library /wp-admin/upload.php3.23 ▲0.0033.02 ▼1.97

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

CSS Margin & Padding Utility: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.26 ▼1.111.70 ▼0.0644.59 ▲0.38
Dashboard /wp-admin2,203 ▲684.86 ▼0.8499.62 ▼21.2940.54 ▼4.74
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0035.40 ▼1.9534.69 ▲1.85
Add New Post /wp-admin/post-new.php1,542 ▲818.32 ▼4.85620.03 ▼84.3157.64 ▲8.06
Media Library /wp-admin/upload.php1,391 ▲34.14 ▼0.0797.98 ▲0.8242.57 ▼3.38

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

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)
Even though everything seems fine, this is not 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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cxx-margin-and-padding-utility/css-margin-padding-util.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side


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
6 plugin tags: utility, margin, boxshadow, padding, css classes...

cxx-margin-and-padding-utility/css-margin-padding-util.php 92% from 13 tests

This is the main PHP file of "CSS Margin & Padding Utility" version 2.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cxx-margin-and-padding-utility.php" instead of "css-margin-padding-util.php")

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
No dangerous file extensions were detected4,317 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ 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
There are no PNG files in this plugin