84% pebble-301-redirects

Code Review | Pebble 301 Redirects

WordPress plugin Pebble 301 Redirects scored84%from 54 tests.

About plugin

  • Plugin page: pebble-301-redirects
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Jun 4, 2018
  • Latest release: Jun 8, 2018
  • Number of updates: 10
  • Update frequency: every 0.7 days
  • Top authors: pebblewebdesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /744 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Analyzing server-side resources used by Pebble 301 Redirects
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0244.63 ▼2.65
Dashboard /wp-admin3.33 ▲0.0251.04 ▼0.16
Posts /wp-admin/edit.php3.38 ▲0.0250.33 ▼6.11
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.78 ▼10.30
Media Library /wp-admin/upload.php3.25 ▲0.0241.44 ▲5.05
301 Redirects /wp-admin/options-general.php?page=pebble-301-redirects3.2131.77

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Pebble 301 Redirects
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.18 ▼0.965.44 ▲3.2941.70 ▼5.83
Dashboard /wp-admin2,210 ▲195.76 ▼0.05103.09 ▼3.3939.68 ▼1.35
Posts /wp-admin/edit.php2,090 ▲11.99 ▼0.0435.83 ▼4.2933.91 ▼3.11
Add New Post /wp-admin/post-new.php1,523 ▲923.21 ▲5.52691.70 ▲8.5664.75 ▲0.14
Media Library /wp-admin/upload.php1,395 ▲44.24 ▼0.0199.41 ▼7.2744.36 ▼0.42
301 Redirects /wp-admin/options-general.php?page=pebble-301-redirects8462.0323.9831.47

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

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
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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pebble-301-redirects/pebble-redirect.php:142

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: redirect, url, 404, seo, 301

pebble-301-redirects/pebble-redirect.php 92% from 13 tests

This is the main PHP file of "Pebble 301 Redirects" version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("pebble-301-redirects.php" instead of "pebble-redirect.php")

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 plugin125 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1810125

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.79MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png173.96KB90.27KB▼ 48.11%
assets/icon-128x128.png8.03KB4.01KB▼ 50.08%
img/pebbleicon.png4.95KB2.94KB▼ 40.55%
assets/icon-256x256.png14.89KB6.94KB▼ 53.42%
assets/banner-1544x500.png607.19KB320.05KB▼ 47.29%