93% orbisius-simple-shortlink

Code Review | Orbisius Simple Shortlink

WordPress plugin Orbisius Simple Shortlink scored 93% from 54 tests.

About plugin

  • Plugin page: orbisius-simple-s...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8
  • WordPress version: 5.8.1
  • First release: Jul 16, 2015
  • Latest release: Oct 17, 2017
  • Number of updates: 15
  • Update frequency: every 54.9 days
  • Top authors: lordspace (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active / 2,252 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼148.54ms] Passed 4 tests

A check of server-side resources used by Orbisius Simple Shortlink
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0133.36 ▼4.55
Dashboard /wp-admin3.10 ▲0.0546.15 ▼23.42
Posts /wp-admin/edit.php3.15 ▲0.0544.88 ▼5.63
Add New Post /wp-admin/post-new.php5.46 ▲0.0387.78 ▼560.55
Media Library /wp-admin/upload.php3.05 ▲0.0433.00 ▼1.12
Orbisius Simple Shortlink /wp-admin/options-general.php?page=orb_club_short_link_settings_page3.0227.57

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Orbisius Simple Shortlink
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8815.82 ▲0.228.87 ▼1.2348.98 ▲0.63
Dashboard /wp-admin2,972 ▲385.89 ▼0.03134.70 ▼25.9595.09 ▼32.30
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0163.39 ▼2.3990.76 ▼12.29
Add New Post /wp-admin/post-new.php1,875 ▲20519.26 ▲0.13371.86 ▼8.86116.79 ▲10.96
Media Library /wp-admin/upload.php1,812 ▲55.05 ▲0.01145.64 ▲5.14114.17 ▼0.70
Orbisius Simple Shortlink /wp-admin/options-general.php?page=orb_club_short_link_settings_page1,7385.27167.6280.64

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/orbisius-simple-shortlink/orbisius-simple-shortlink.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/orbisius-simple-shortlink/orbisius-simple-shortlink-admin.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: There are too many tags (11 tag instead of maximum 10)
  • Screenshots: Please add an image for screenshot #1 (Plugin's Settings Page - todo)
Please take inspiration from this readme.txt

orbisius-simple-shortlink/orbisius-simple-shortlink.php 92% from 13 tests

"Orbisius Simple Shortlink" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/lang")

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
No dangerous file extensions were detected349 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP27138349

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin