84% the-marquee-block

Code Review | The Marquee Block

WordPress plugin The Marquee Block scored84%from 54 tests.

About plugin

  • Plugin page: the-marquee-block
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.1
  • WordPress version: 6.3.1
  • First release: Aug 25, 2022
  • Latest release: Nov 9, 2022
  • Number of updates: 40
  • Update frequency: every 2.6 days
  • Top authors: themeskingdom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /2,133 total downloads

Benchmarks

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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼8.07ms] Passed 4 tests

Server-side resources used by The Marquee Block
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.35 ▼0.66
Dashboard /wp-admin3.35 ▲0.0452.93 ▼2.34
Posts /wp-admin/edit.php3.40 ▲0.0455.43 ▼1.51
Add New Post /wp-admin/post-new.php7.03 ▲1.1391.24 ▼27.77
Media Library /wp-admin/upload.php3.28 ▲0.0438.42 ▲2.75

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for The Marquee Block
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,097 ▲33622.78 ▲8.4342.72 ▲41.0135.76 ▼6.30
Dashboard /wp-admin2,260 ▲8010.36 ▲4.78114.08 ▲20.4241.14 ▼0.96
Posts /wp-admin/edit.php2,158 ▲589.33 ▲7.3481.32 ▲41.8835.85 ▼4.44
Add New Post /wp-admin/post-new.php6,195 ▲4,66721.45 ▼1.84750.64 ▲60.7642.23 ▼10.46
Media Library /wp-admin/upload.php1,477 ▲7712.01 ▲7.83128.00 ▲6.2939.67 ▼6.32

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
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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 fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/the-marquee-block/the-marquee-block.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: marquee, block, gutenberg, themeskingdom, blocks

the-marquee-block/the-marquee-block.php 85% from 13 tests

The main PHP file in "The Marquee Block" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("7.4" instead of "7.0")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("6.0" instead of "5.9")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected556 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JSON500291
PHP23951148
PO File1374096
JavaScript23019
CSS2002

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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