90% lenix-post-external-link

Code Review | Lenix Post External Link

WordPress plugin Lenix Post External Link scored90%from 54 tests.

About plugin

  • Plugin page: lenix-post-extern...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9.6
  • WordPress version: 6.3.1
  • First release: Jul 1, 2018
  • Latest release: Jul 1, 2018
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: yonifre (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /559 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Lenix Post External Link
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.01 ▲1.86
Dashboard /wp-admin3.31 ▲0.0152.62 ▼1.18
Posts /wp-admin/edit.php3.36 ▲0.0051.23 ▼4.43
Add New Post /wp-admin/post-new.php5.89 ▲0.0195.82 ▲0.83
Media Library /wp-admin/upload.php3.23 ▲0.0039.41 ▲4.66

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Lenix Post External Link
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲614.75 ▲0.392.22 ▲0.3443.00 ▲3.09
Dashboard /wp-admin2,195 ▲155.58 ▼0.0891.65 ▲1.9138.36 ▼5.37
Posts /wp-admin/edit.php2,100 ▲32.02 ▲0.0340.10 ▲0.1737.48 ▼3.89
Add New Post /wp-admin/post-new.php6,238 ▲4,70020.99 ▼2.031,007.36 ▲383.1671.17 ▲24.94
Media Library /wp-admin/upload.php1,403 ▲34.06 ▼0.16101.52 ▲4.2143.32 ▼0.87

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

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 errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: lenix, seo, external link

lenix-post-external-link/lenix-post-external-link.php Passed 13 tests

The principal PHP file in "Lenix Post External Link" v. 1.0.0 is loaded by WordPress automatically on each request
30 characters long description:
Take any post to external link

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin65 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1291765

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
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 functions583.33%
▷ Anonymous functions116.67%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin