83% freedom-permalinks

Code Review | Freedom Permalinks

WordPress plugin Freedom Permalinks scored83%from 54 tests.

About plugin

  • Plugin page: freedom-permalinks
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.6.1
  • WordPress version: 6.3.1
  • First release: Nov 25, 2016
  • Latest release: Nov 25, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: krazykoder (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /0 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.67MB] [CPU: ▼11.03ms] Passed 4 tests

A check of server-side resources used by Freedom Permalinks
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.61 ▼3.38
Dashboard /wp-admin3.33 ▲0.0355.05 ▲0.95
Posts /wp-admin/edit.php3.38 ▲0.0355.65 ▲7.56
Add New Post /wp-admin/post-new.php3.12 ▼2.7741.82 ▼49.26
Media Library /wp-admin/upload.php3.25 ▲0.0241.58 ▲10.84

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Freedom Permalinks
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.21 ▼1.171.57 ▼0.1442.64 ▼3.60
Dashboard /wp-admin2,206 ▲154.85 ▼0.11111.41 ▼4.7939.42 ▼8.88
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0337.14 ▲1.1134.60 ▲0.11
Add New Post /wp-admin/post-new.php1,534 ▼823.25 ▲4.93662.79 ▲49.6348.31 ▼17.31
Media Library /wp-admin/upload.php1,391 ▲64.28 ▲0.1393.59 ▼9.4939.87 ▼1.79

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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
Everything seems fine, however 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
  • 1× 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/freedom-permalinks/index.php:18

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 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Donate link: Invalid URI ("http;//standaloneinstaller.com")
The official readme.txt is a good inspiration

freedom-permalinks/index.php 85% from 13 tests

The primary PHP file in "Freedom Permalinks" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("freedom-permalinks.php" instead of "index.php")
  • Domain Path: The domain path points to an invalid folder, "/language/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin438 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP120821438

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity62.00
▷ Minimum class complexity62.00
▷ Maximum class complexity62.00
Average method complexity3.65
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods1565.22%
▷ Protected methods834.78%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected