89% yours59-responsive-spacings-for-core-blocks

Code Review | Yours59 responsive spacings for core blocks

WordPress plugin Yours59 responsive spacings for core blocks scored89%from 54 tests.

About plugin

  • Plugin page: yours59-responsiv...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Aug 9, 2022
  • Latest release: Aug 18, 2022
  • Number of updates: 4
  • Update frequency: every 3.5 days
  • Top authors: larslo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /213 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Yours59 responsive spacings for core blocks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.45 ▼7.20
Dashboard /wp-admin3.32 ▲0.0243.21 ▲1.29
Posts /wp-admin/edit.php3.37 ▲0.0143.54 ▼5.34
Add New Post /wp-admin/post-new.php5.85 ▼0.04101.47 ▲2.93
Media Library /wp-admin/upload.php3.24 ▲0.0132.32 ▼0.17

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Yours59 responsive spacings for core blocks
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.61 ▼1.051.67 ▼0.5041.10 ▼1.80
Dashboard /wp-admin2,209 ▲215.88 ▲1.02107.15 ▼5.8240.22 ▼0.31
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0335.95 ▲1.6333.70 ▲2.20
Add New Post /wp-admin/post-new.php1,691 ▲14620.45 ▼2.61626.15 ▼52.3251.43 ▼1.84
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.0293.66 ▼5.2143.97 ▼2.73

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed: The official readme.txt might help

yours59-responsive-spacings-for-core-blocks/yours59-responsive-spacings-for-core-blocks.php 92% from 13 tests

"Yours59 responsive spacings for core blocks" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin776 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
Markdown21210555
CSS21319155
PHP2161865
JavaScript1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods360.00%
▷ Protected methods00.00%
▷ Private methods240.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.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
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot.png37.33KB14.77KB▼ 60.43%