64% wp-lynx

Code Review | WP Lynx

WordPress plugin WP Lynx scored64%from 54 tests.

About plugin

  • Plugin page: wp-lynx
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.1
  • WordPress version: 6.3.1
  • First release: Jun 16, 2010
  • Latest release: Nov 24, 2022
  • Number of updates: 89
  • Update frequency: every 51.1 days
  • Top authors: mtekk (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active /8,785 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.38ms] Passed 4 tests

Server-side resources used by WP Lynx
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.38 ▲0.68
Dashboard /wp-admin3.37 ▲0.0252.03 ▼11.53
Posts /wp-admin/edit.php3.48 ▲0.1248.71 ▼2.37
Add New Post /wp-admin/post-new.php5.95 ▲0.0691.86 ▼12.80
Media Library /wp-admin/upload.php3.29 ▲0.0635.93 ▼2.82
WP Lynx /wp-admin/options-general.php?page=wp-lynx3.2735.43

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
llynx_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Lynx
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.75 ▲0.371.95 ▲0.3441.55 ▲0.57
Dashboard /wp-admin2,196 ▲165.56 ▼0.1483.39 ▼8.7439.28 ▼5.86
Posts /wp-admin/edit.php2,101 ▲42.06 ▲0.0139.75 ▲0.1935.53 ▼4.99
Add New Post /wp-admin/post-new.php1,553 ▲2717.62 ▲0.09683.99 ▲40.6757.75 ▲9.07
Media Library /wp-admin/upload.php1,419 ▲194.31 ▲0.07103.73 ▲0.8047.28 ▲1.45
WP Lynx /wp-admin/options-general.php?page=wp-lynx1,4652.2240.6550.98

Uninstaller [IO: ▲0.21MB] [DB: ▲0.07MB] 25% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/wp-lynx/uninstall.php+24
    require_once(wp-content/plugins/wp-lynx/includes/class.mtekk_adminkit_uninstaller.php): failed to open stream: No such file or directory
  • This plugin has failed uninstalling correctly, leaving 45 files (0.21MB) in the plugin directory
    • (new file) class.pdf_helpers.php
    • (new file) .project
    • (new file) includes/adminKit/assets/mtekk_adminkit_tabs.css
    • (new file) class.llynx_admin.php
    • (new file) .gitignore
    • (new file) class.llynx_scrape.php
    • (new file) includes/adminKit/assets/mtekk_adminkit_messages.js
    • (new file) includes/adminKit/assets/mtekk_adminkit_messages.min.js
    • (new file) includes/adminKit/assets/mtekk_adminkit_engroups.js
    • (new file) includes/adminKit/assets/mtekk_adminkit_engroups.min.js
    • ...
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • llynx_options
    • widget_recent-posts
    • recovery_mode_email_last_sent
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
Good news, no errors were detected

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 items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/wp-lynx/includes/class.mtekk_adminkit_uninstaller.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-lynx/uninstall.php on line 24
    • > PHP Warning
      require_once(wp-content/plugins/wp-lynx/includes/class.mtekk_adminkit_uninstaller.php): failed to open stream: No such file or directory in wp-content/plugins/wp-lynx/uninstall.php on line 24

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 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: links, post, facebook, posts, open graph

wp-lynx/wp_lynx.php 85% from 13 tests

The main PHP file in "WP Lynx" ver. 1.3.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-lynx.php" instead of "wp_lynx.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 175 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected3,768 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
PHP25961,6803,207
JavaScript71937458
CSS60279
XML10024

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity15.59
▷ Minimum class complexity1.00
▷ Maximum class complexity117.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces2
Interfaces1
Traits0
Classes21
▷ Abstract classes419.05%
▷ Concrete classes1780.95%
▷ Final classes00.00%
Methods200
▷ Static methods105.00%
▷ Public methods19497.00%
▷ Protected methods31.50%
▷ Private methods31.50%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
Constants9
▷ Global constants111.11%
▷ Class constants888.89%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
llynx.png0.62KB0.61KB▼ 1.57%