10% change-wp-page-permalinks

Code Review | WP Page Permalink Extension

WordPress plugin WP Page Permalink Extension scored10%from 54 tests.

About plugin

  • Plugin page: change-wp-page-pe...
  • Plugin version: 1.5.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3
  • WordPress version: 6.3.1
  • First release: May 9, 2017
  • Latest release: Nov 14, 2019
  • Number of updates: 46
  • Update frequency: every 20.0 days
  • Top authors: infosatech (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

600+ active /8,256 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/change-wp-page-permalinks/change-wp-page-permalinks.php+65
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.72MB] [CPU: ▼46.37ms] Passed 4 tests

An overview of server-side resources used by WP Page Permalink Extension
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.27 ▼1.198.44 ▼32.10
Dashboard /wp-admin2.28 ▼1.0211.24 ▼35.70
Posts /wp-admin/edit.php2.28 ▼1.0710.43 ▼36.62
Add New Post /wp-admin/post-new.php2.28 ▼3.6110.55 ▼81.05
Media Library /wp-admin/upload.php2.28 ▼0.959.30 ▼26.07
WP Page Extension /wp-admin/options-general.php?page=wp-page-permalink-extension2.2810.38

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
cwpp_plugin_installed_time
db_upgraded
cwpp_plugin_installed_time_donate
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by WP Page Permalink Extension
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4714.48 ▲0.281.57 ▼0.5336.82 ▼13.49
Dashboard /wp-admin2,213 ▲254.88 ▼0.0398.58 ▼19.7439.22 ▼3.98
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0239.53 ▲1.8537.07 ▲2.57
Add New Post /wp-admin/post-new.php1,517 ▼217.41 ▼5.88605.26 ▼76.0757.06 ▼3.24
Media Library /wp-admin/upload.php1,392 ▲44.25 ▲0.0397.25 ▼1.0544.64 ▲1.40
WP Page Extension /wp-admin/options-general.php?page=wp-page-permalink-extension1,1332.0229.2970.33

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/change-wp-page-permalinks/change-wp-page-permalinks.php+99
    Trying to access array offset on value of type bool
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • cwpp_plugin_installed_time_donate
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=wp-page-permalink-extension
    • > Notice in wp-content/plugins/change-wp-page-permalinks/change-wp-page-permalinks.php+99
    Trying to access array offset on value of type bool

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
Almost there! Just fix the following items
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/change-wp-page-permalinks/includes/media.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/change-wp-page-permalinks/admin/settings-page.php:16
    • > PHP Warning
      Use of undefined constant CWPP_PLUGIN_VERSION - assumed 'CWPP_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/change-wp-page-permalinks/admin/settings-page.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/change-wp-page-permalinks/admin/donate.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/change-wp-page-permalinks/admin/notice.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/change-wp-page-permalinks/includes/trailing-slash.php:12

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: page url, page extension, page permalink, page permalinks, permalink...

change-wp-page-permalinks/change-wp-page-permalinks.php Passed 13 tests

The primary PHP file in "WP Page Permalink Extension" version 1.5.4 is used by WordPress to initiate all plugin functionality
137 characters long description:
WP Page Permalink Extension plugin will help you to add anything like .html, .php, .aspx, .htm, .asp, .shtml as WordPress Page Extention.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin864 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12128135557
CSS2210157
SVG10099
JavaScript20051

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
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%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin