94% seo-image-rotator

Code Review | SEO Image Rotator

WordPress plugin SEO Image Rotator scored 94% from 54 tests.

About plugin

  • Plugin page: seo-image-rotator
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.1
  • WordPress version: 5.8.1
  • First release: Jun 26, 2013
  • Latest release: Jun 26, 2013
  • Number of updates: 5
  • Update frequency: every 0.8 days
  • Top authors: nzrobert (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active / 2,934 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by SEO Image Rotator
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0124.97 ▲2.67
Dashboard /wp-admin3.07 ▲0.0131.60 ▼4.96
Posts /wp-admin/edit.php3.12 ▲0.0131.10 ▼4.78
Add New Post /wp-admin/post-new.php5.43 ▼0.0067.95 ▼708.62
Media Library /wp-admin/upload.php3.02 ▲0.0122.38 ▼5.86

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for SEO Image Rotator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,849 ▲19815.93 ▲0.358.58 ▲1.3379.20 ▲3.19
Dashboard /wp-admin2,949 ▲546.11 ▼0.07115.05 ▼16.27177.46 ▼12.66
Posts /wp-admin/edit.php2,761 ▲183.12 ▼0.1165.02 ▼2.94137.29 ▼2.08
Add New Post /wp-admin/post-new.php3,754 ▲1318.96 ▲0.03452.72 ▼2.33192.25 ▲28.89
Media Library /wp-admin/upload.php1,769 ▲205.48 ▼0.06132.43 ▼8.31218.66 ▲35.31

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

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)
Good news, no errors were detected

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-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/seo-image-rotator/seo-image-rotator.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === seo-image-rotator === )
You can look at the official readme.txt

seo-image-rotator/seo-image-rotator.php 92% from 13 tests

The principal PHP file in "SEO Image Rotator" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 143 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected665 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1122131663
JavaScript10192

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/icon_16x16.png3.36KB0.68KB▼ 79.80%