84% marquee-image-crawler

Code Review | Marquee image crawler

WordPress plugin Marquee image crawler scored 84% from 54 tests.

About plugin

  • Plugin page: marquee-image-cra...
  • Plugin version: 1.3
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Dec 25, 2020
  • Latest release: Dec 1, 2022
  • Number of updates: 7
  • Update frequency: every 100.9 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

800+ active / 3,457 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.69ms] Passed 4 tests

A check of server-side resources used by Marquee image crawler
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.58 ▼8.35
Dashboard /wp-admin3.32 ▲0.0246.48 ▼3.73
Posts /wp-admin/edit.php3.37 ▲0.0246.82 ▼4.88
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.85 ▼5.78
Media Library /wp-admin/upload.php3.24 ▲0.0234.35 ▼0.39
Marquee image /wp-admin/options-general.php?page=marquee-image-crawler3.2831.43

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 20 new files
Database: 1 new table, 8 new options
New tables
wp_marquee_img_crawler
New WordPress options
can_compress_scripts
db_upgraded
marquee-image-crawler
widget_recent-comments
widget_marquee-image-crawler
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Marquee image crawler
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7313.52 ▼0.881.86 ▲0.0440.09 ▼5.72
Dashboard /wp-admin2,210 ▲224.83 ▼0.08107.56 ▲4.7839.25 ▼1.93
Posts /wp-admin/edit.php2,096 ▲72.04 ▲0.0439.72 ▼3.2932.27 ▼2.39
Add New Post /wp-admin/post-new.php1,536 ▲1723.31 ▼0.23620.75 ▼56.6850.11 ▼7.02
Media Library /wp-admin/upload.php1,389 ▼24.26 ▲0.0593.26 ▼14.0839.96 ▼2.82
Marquee image /wp-admin/options-general.php?page=marquee-image-crawler9992.0524.1228.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_marquee-image-crawler
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 4× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/marquee-image-crawler/pages/image-management-edit.php
    • > /wp-content/plugins/marquee-image-crawler/pages/image-management-add.php
    • > /wp-content/plugins/marquee-image-crawler/marquee-image-crawler.php
    • > /wp-content/plugins/marquee-image-crawler/pages/image-management-show.php

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
5 plugin tags: widget, image, marquee, plugin, crawler

marquee-image-crawler/marquee-image-crawler.php Passed 13 tests

The main PHP file in "Marquee image crawler" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
106 characters long description:
Marquee image crawler is a continuous scrolling image plugin. This plugin crawls the images left or right.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,330 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP715230889
JavaScript22921336
PO File14564105

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity18.00
▷ Minimum class complexity13.00
▷ Maximum class complexity30.00
Average method complexity3.72
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods25
▷ Static methods1976.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
inc/image-icon.png2.98KB0.54KB▼ 81.86%