78% upress-link

Code Review | uPress Link

WordPress plugin uPress Link scored78%from 54 tests.

About plugin

  • Plugin page: upress-link
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Apr 16, 2015
  • Latest release: Dec 7, 2016
  • Number of updates: 10
  • Update frequency: every 144.7 days
  • Top authors: ilanraid (80%)upress (30%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,925 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
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.61ms] Passed 4 tests

Analyzing server-side resources used by uPress Link
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0645.86 ▼5.09
Dashboard /wp-admin3.38 ▲0.0848.46 ▼12.30
Posts /wp-admin/edit.php3.43 ▲0.0752.37 ▼0.86
Add New Post /wp-admin/post-new.php5.96 ▲0.0790.96 ▼4.17
Media Library /wp-admin/upload.php3.30 ▲0.0738.28 ▲1.04
uPress Link /wp-admin/options-general.php?page=upress-link3.3334.85

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for uPress Link
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.68 ▲0.311.69 ▼0.2451.16 ▲4.36
Dashboard /wp-admin2,199 ▲225.64 ▲0.0390.50 ▼2.8643.98 ▲0.83
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0738.32 ▲0.3134.90 ▲1.05
Add New Post /wp-admin/post-new.php1,529 ▲122.68 ▼0.35644.00 ▼28.4663.96 ▲2.35
Media Library /wp-admin/upload.php1,404 ▲74.22 ▲0.0297.09 ▼10.6842.71 ▼2.41
uPress Link /wp-admin/options-general.php?page=upress-link9002.1133.2625.57

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=upress-link
    • > Notice in wp-content/plugins/upress-link/admin/options.php+41
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _ex() in wp-content/plugins/upress-link/admin/options.php:2

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)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (uPress Link main view) image missing
You can take inspiration from this readme.txt

upress-link/upress-link.php Passed 13 tests

The principal PHP file in "uPress Link" v. 1.3.1 is loaded by WordPress automatically on each request
92 characters long description:
uPress Link is a companion plugin for the WordPress hosting manager at https://www.upress.io

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected956 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP38560509
JavaScript24412274
CSS2207173

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity58.00
▷ Minimum class complexity58.00
▷ Maximum class complexity58.00
Average method complexity6.18
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.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