77% simple-link-directory

Code Review | Simple Link Directory

WordPress plugin Simple Link Directory scored77%from 54 tests.

About plugin

  • Plugin page: simple-link-direc...
  • Plugin version: 8.0.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Sep 14, 2016
  • Latest release: Nov 24, 2023
  • Number of updates: 249
  • Update frequency: every 10.6 days
  • Top authors: quantumcloud (100%)

Code review

54 tests

User reviews

114 reviews

Install metrics

3,000+ active /202,264 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.54MB] [CPU: ▲3.63ms] Passed 4 tests

An overview of server-side resources used by Simple Link Directory
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.95 ▲0.4940.72 ▼0.55
Dashboard /wp-admin3.90 ▲0.5951.62 ▲1.18
Posts /wp-admin/edit.php3.96 ▲0.6054.33 ▲5.59
Add New Post /wp-admin/post-new.php6.45 ▲0.55101.95 ▲8.76
Media Library /wp-admin/upload.php3.77 ▲0.5443.48 ▲8.30
AddOns /wp-admin/edit.php?post_type=sld&page=sld-addons-page4.1340.36
List Categories /wp-admin/edit-tags.php?taxonomy=sld_cat&post_type=sld3.7640.49
Support /wp-admin/edit.php?post_type=sld&page=qcopd_sld_supports4.1038.89
New List /wp-admin/post-new.php?post_type=sld4.2462.32
Settings /wp-admin/edit.php?post_type=sld&page=sld_settings4.1044.86
Manage List Items /wp-admin/edit.php?post_type=sld4.1744.19
Import /wp-admin/edit.php?post_type=sld&page=qcopd_bimport_page4.1037.13

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 339 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
qc_sld_rating_active_time
widget_recent-posts
sld_ot_convrt
db_upgraded
hclpage
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Simple Link Directory
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,957 ▲19513.46 ▼0.857.15 ▲5.4329.04 ▼16.23
Dashboard /wp-admin2,253 ▲725.74 ▲0.0396.52 ▼10.1583.41 ▲41.01
Posts /wp-admin/edit.php2,176 ▲762.23 ▲0.0936.81 ▼2.4936.15 ▲1.16
Add New Post /wp-admin/post-new.php6,263 ▲4,73718.99 ▼4.22826.62 ▲227.2536.68 ▼16.86
Media Library /wp-admin/upload.php1,467 ▲644.37 ▲0.1797.91 ▲1.9177.77 ▲34.86
AddOns /wp-admin/edit.php?post_type=sld&page=sld-addons-page1,3662.2141.85113.09
List Categories /wp-admin/edit-tags.php?taxonomy=sld_cat&post_type=sld1,3521.8130.6235.72
Support /wp-admin/edit.php?post_type=sld&page=qcopd_sld_supports1,7462.4051.4581.35
New List /wp-admin/post-new.php?post_type=sld2,3654.72115.84115.70
Settings /wp-admin/edit.php?post_type=sld&page=sld_settings1,8612.4346.6955.78
Manage List Items /wp-admin/edit.php?post_type=sld1,3382.2649.7440.37
Import /wp-admin/edit.php?post_type=sld&page=qcopd_bimport_page1,1492.1942.7042.87

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 9 options
    • hclpage
    • db_upgraded
    • qc_sld_rating_active_time
    • widget_recent-comments
    • sld_ot_convrt
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 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 0% from 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
Please fix the following items
  • 8× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/simple-link-directory/qc-op-directory-assets.php
    • > /wp-content/plugins/simple-link-directory/qc-opd-setting-options.php
    • > /wp-content/plugins/simple-link-directory/qc-op-directory-shortcodes.php
    • > /wp-content/plugins/simple-link-directory/qc-opd-ajax-stuffs.php
    • > /wp-content/plugins/simple-link-directory/qc-op-directory-post-type.php
    • > /wp-content/plugins/simple-link-directory/qc-op-directory-import.php
    • > /wp-content/plugins/simple-link-directory/qc-op-directory-main.php
    • > /wp-content/plugins/simple-link-directory/qcopd-shortcode-generator.php
  • 17× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/simple-link-directory/templates/style-3/template.php:1
    • > PHP Warning
      Use of undefined constant QCOPD_IMG_URL - assumed 'QCOPD_IMG_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-link-directory/qc-rating-feature/qc-rating-class.php on line 22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/simple-link-directory/modules/addons/addons.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-link-directory/embed/embedder.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/simple-link-directory/embed/qcopd-embed-link.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simple-link-directory/inc/cmb/custom-meta-boxes.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/simple-link-directory/qc-support-promo-page/class-qc-support-promo-page.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/simple-link-directory/modules/addons/admin_ui2.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/simple-link-directory/templates/style-4/template.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/simple-link-directory/templates/style-2/template.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 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
5 plugin tags: directory listing, link library, listings, directory, listing directory

simple-link-directory/qc-op-directory-main.php 77% from 13 tests

Analyzing the main PHP file in "Simple Link Directory" version 8.0.8
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 154 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("simple-link-directory.php" instead of "qc-op-directory-main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin43,454 lines of code in 161 files:
LanguageFilesBlank linesComment linesLines of code
CSS391,24833121,761
JSON8007,055
JavaScript701,6961,6686,718
PHP331,8047235,032
SVG5102,703
Markdown235089
Bourne Shell124055
Sass34141

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity9.45
▷ Minimum class complexity1.00
▷ Maximum class complexity54.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes29
▷ Abstract classes13.45%
▷ Concrete classes2896.55%
▷ Final classes00.00%
Methods139
▷ Static methods21.44%
▷ Public methods13496.40%
▷ Protected methods10.72%
▷ Private methods42.88%
Functions63
▷ Named functions63100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
89 PNG files occupy 2.60MB with 1.65MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
qc-support-promo-page/images/slider-hero-icon-256x256.png71.55KB20.25KB▼ 71.70%
qc-support-promo-page/images/button-menu.png63.58KB17.49KB▼ 72.49%
inc/cmb/css/vendor/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png0.20KB0.09KB▼ 57.49%
qc-support-promo-page/images/highlight.png16.86KB6.57KB▼ 61.02%
qc-support-promo-page/images/feature02.png5.13KB2.39KB▼ 53.37%