79% ark-relatedpost

Code Review | ARK Related Posts

WordPress plugin ARK Related Posts scored79%from 54 tests.

About plugin

  • Plugin page: ark-relatedpost
  • Plugin version: 2.18
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Oct 7, 2014
  • Latest release: Aug 17, 2023
  • Number of updates: 65
  • Update frequency: every 49.8 days
  • Top authors: AlexKar (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

600+ active /11,907 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼1.56ms] Passed 4 tests

A check of server-side resources used by ARK Related Posts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0840.92 ▲1.28
Dashboard /wp-admin3.43 ▲0.0951.71 ▲0.91
Posts /wp-admin/edit.php3.54 ▲0.1549.25 ▼2.84
Add New Post /wp-admin/post-new.php6.03 ▲0.10101.43 ▼5.25
Media Library /wp-admin/upload.php3.35 ▲0.0840.03 ▲0.93
Связанные записи /wp-admin/options-general.php?page=ark_rp_ostoptions3.3030.51

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

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

Browser metrics Passed 4 tests

A check of browser resources used by ARK Related Posts
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2813.31 ▼1.041.54 ▼0.8540.76 ▼3.39
Dashboard /wp-admin2,221 ▲545.85 ▲0.3089.24 ▼10.5240.59 ▼3.67
Posts /wp-admin/edit.php2,125 ▲252.25 ▲0.2638.97 ▲2.1634.19 ▼7.23
Add New Post /wp-admin/post-new.php1,543 ▲1723.63 ▼0.03662.87 ▼25.7237.80 ▼16.83
Media Library /wp-admin/upload.php1,420 ▲204.34 ▲0.2296.24 ▼20.3946.51 ▼0.86
Связанные записи /wp-admin/options-general.php?page=ark_rp_ostoptions1,9343.1464.4548.11

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

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=ark_rp_ostoptions
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=ark_rp_ostoptions
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ark-relatedpost/ark-relatedpost.php:30

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 Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: posts, post, related posts, related post, related

ark-relatedpost/ark-relatedpost.php Passed 13 tests

The main PHP script in "ARK Related Posts" version 2.18 is automatically included on every request by WordPress
99 characters long description:
Вывод связанных записей на основе тегов или категорий

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
There were no executable files found in this plugin497 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12760442
CSS12552
JavaScript1003

PHP code Passed 2 tests

An short overview of 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.25
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/ark-noimage.png27.27KB9.79KB▼ 64.08%
img/button-donate.png12.60KB4.70KB▼ 62.74%