90% permalink-shortcode

Code Review | Permalink Shortcode

WordPress plugin Permalink Shortcode scored90%from 54 tests.

About plugin

  • Plugin page: permalink-shortcode
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.5.1
  • WordPress version: 6.3.1
  • First release: May 2, 2013
  • Latest release: May 2, 2013
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: rlange (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /2,536 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
Installer ran successfully

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

Analyzing server-side resources used by Permalink Shortcode
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.61 ▼2.98
Dashboard /wp-admin3.32 ▼0.0353.29 ▼10.98
Posts /wp-admin/edit.php3.37 ▲0.0152.17 ▼3.12
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.23 ▼25.99
Media Library /wp-admin/upload.php3.24 ▲0.0139.28 ▲1.84

Server storage [IO: ▲0.02MB] [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
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Permalink Shortcode: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.24 ▼0.122.18 ▲0.4944.94 ▲5.23
Dashboard /wp-admin2,198 ▲185.61 ▼0.0490.75 ▲2.0541.46 ▲0.57
Posts /wp-admin/edit.php2,100 ▼32.01 ▲0.0534.26 ▼2.7835.50 ▲0.17
Add New Post /wp-admin/post-new.php1,531 ▲523.29 ▲0.06621.47 ▼62.8646.14 ▼8.22
Media Library /wp-admin/upload.php1,403 ▲64.19 ▼0.0899.32 ▲3.0643.56 ▲0.83

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: shortcode, permalink

permalink-shortcode/permalink-shortcode.php Passed 13 tests

"Permalink Shortcode" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
76 characters long description:
Provides a shortcode that allows you to insert permalinks into your content.

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

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods5
▷ Static methods120.00%
▷ Public methods240.00%
▷ Protected methods00.00%
▷ Private methods360.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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin