84% luckywp-wiki-linking

Code Review | LuckyWP Wiki Linking

WordPress plugin LuckyWP Wiki Linking scored84%from 54 tests.

About plugin

  • Plugin page: luckywp-wiki-linking
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.3
  • WordPress version: 6.3.1
  • First release: May 15, 2018
  • Latest release: Oct 30, 2019
  • Number of updates: 9
  • Update frequency: every 59.2 days
  • Top authors: theluckywp (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

90+ active /2,150 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.15MB] [CPU: ▼1.07ms] Passed 4 tests

An overview of server-side resources used by LuckyWP Wiki Linking
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1238.49 ▼4.55
Dashboard /wp-admin3.47 ▲0.1747.82 ▼5.32
Posts /wp-admin/edit.php3.52 ▲0.1652.03 ▲3.98
Add New Post /wp-admin/post-new.php6.06 ▲0.18104.48 ▲4.49
Media Library /wp-admin/upload.php3.39 ▲0.1636.89 ▲1.61
Wiki Linking /wp-admin/admin.php?page=lwpwl_main3.4740.06
Settings /wp-admin/admin.php?page=lwpwl_settings3.3535.42

Server storage [IO: ▲0.25MB] [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: 90 new files
Database: 2 new tables, 8 new options
New tables
wp_lwpwl_post
wp_lwpwl_item
New WordPress options
lwpwl_general
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
lwpwl_dbVersion

Browser metrics Passed 4 tests

Checking browser requirements for LuckyWP Wiki Linking
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5114.35 ▼0.081.69 ▼0.0443.14 ▲2.02
Dashboard /wp-admin2,221 ▲445.58 ▼0.0293.58 ▼1.4841.40 ▼0.81
Posts /wp-admin/edit.php2,123 ▲231.95 ▲0.0043.25 ▲6.4736.61 ▼0.87
Add New Post /wp-admin/post-new.php6,290 ▲4,75525.76 ▲7.48927.82 ▲296.6956.28 ▼16.98
Media Library /wp-admin/upload.php1,423 ▲294.24 ▲0.04104.79 ▲4.0947.92 ▲2.74
Wiki Linking /wp-admin/admin.php?page=lwpwl_main1,0171.7732.3651.22
Settings /wp-admin/admin.php?page=lwpwl_settings9401.7625.5731.56

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please fix the following
  • 73× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: item in wp-content/plugins/luckywp-wiki-linking/admin/views/main/_card.php on line 11
    • > PHP Fatal error
      Uncaught Error: Class 'luckywp\\wikiLinking\\core\\validators\\Validator' not found in wp-content/plugins/luckywp-wiki-linking/core/validators/FilterValidator.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'luckywp\\wikiLinking\\core\\base\\Widget' not found in wp-content/plugins/luckywp-wiki-linking/admin/widgets/noticeDbMigrate/NoticeDbMigrate.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/luckywp-wiki-linking/admin/views/main/index.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/luckywp-wiki-linking/admin/views/mbPostGeneral/keyword_add.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'luckywp\\wikiLinking\\core\\base\\BaseObject' not found in wp-content/plugins/luckywp-wiki-linking/core/base/Model.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'luckywp\\wikiLinking\\core\\base\\ServiceLocator' not found in wp-content/plugins/luckywp-wiki-linking/core/base/BasePlugin.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'luckywp\\wikiLinking\\core\\base\\BaseObject' not found in wp-content/plugins/luckywp-wiki-linking/core/wp/Options.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/luckywp-wiki-linking/admin/views/main/bind_item_to_posts_success.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'luckywp\\wikiLinking\\core\\base\\Widget' not found in wp-content/plugins/luckywp-wiki-linking/admin/widgets/accessRoles/AccessRoles.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: internal links, internal linking, wiki, linking, links...

luckywp-wiki-linking/luckywp-wiki-linking.php Passed 13 tests

The entry point to "LuckyWP Wiki Linking" version 1.0.3 is a PHP file that has certain tags in its header comment area
80 characters long description:
The plugin allows to easily organize a linking in the wiki style on the website.

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
There were no executable files found in this plugin4,281 lines of code in 85 files:
LanguageFilesBlank linesComment linesLines of code
PHP837531,1254,279
CSS1001
JavaScript1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity7.82
▷ Minimum class complexity1.00
▷ Maximum class complexity51.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces28
Interfaces1
Traits0
Classes59
▷ Abstract classes610.17%
▷ Concrete classes5389.83%
▷ Final classes00.00%
Methods260
▷ Static methods4316.54%
▷ Public methods23991.92%
▷ Protected methods155.77%
▷ Private methods62.31%
Functions26
▷ Named functions00.00%
▷ Anonymous functions26100.00%
Constants13
▷ Global constants00.00%
▷ Class constants13100.00%
▷ Public constants13100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin