84% backwards-compatible-permalinks

Code Review | Backwards Compatible Permalinks

WordPress plugin Backwards Compatible Permalinks scored84%from 54 tests.

About plugin

  • Plugin page: backwards-compati...
  • Plugin version: 0.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.1
  • WordPress version: 6.3.1
  • First release: Mar 11, 2019
  • Latest release: Mar 11, 2019
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: aprea (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /585 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
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Backwards Compatible Permalinks
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.99 ▼4.74
Dashboard /wp-admin3.32 ▼0.0344.21 ▼20.23
Posts /wp-admin/edit.php3.37 ▲0.0143.35 ▼1.66
Add New Post /wp-admin/post-new.php5.90 ▲0.0176.69 ▼12.93
Media Library /wp-admin/upload.php3.24 ▲0.0136.53 ▲1.80

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Backwards Compatible Permalinks
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.44 ▲0.221.66 ▼0.1742.66 ▼2.49
Dashboard /wp-admin2,203 ▲155.79 ▲0.91100.07 ▼20.6242.60 ▼2.32
Posts /wp-admin/edit.php2,086 ▼31.99 ▼0.0634.90 ▼2.3629.13 ▼4.13
Add New Post /wp-admin/post-new.php1,533 ▲1923.57 ▲6.14636.11 ▼53.8247.75 ▼5.81
Media Library /wp-admin/upload.php1,385 ▼64.17 ▼0.04101.92 ▼1.4544.14 ▼2.41

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Aprea\\BackwardsCompatiblePermalinks\\register_uninstall_hook() in wp-content/plugins/backwards-compatible-permalinks/backwards-compatible-permalinks.php:43

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: permalinks, url, urls, permalink

backwards-compatible-permalinks/backwards-compatible-permalinks.php Passed 13 tests

This is the main PHP file of "Backwards Compatible Permalinks" version 0.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
89 characters long description:
Provides a degree of backwards compatibility when switching between permalink structures.

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
Everything looks great! No dangerous files found in this plugin28 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1136528

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
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
Namespaces1
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected