73% rektic-wp

Code Review | Rektic

WordPress plugin Rektic scored73%from 54 tests.

About plugin

  • Plugin page: rektic-wp
  • Plugin version: 1.1.5
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Jan 30, 2023
  • Latest release: Feb 15, 2023
  • Number of updates: 25
  • Update frequency: every 0.8 days
  • Top authors: rahmarektic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /896 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.37MB] [CPU: ▼5.49ms] Passed 4 tests

This is a short check of server-side resources used by Rektic
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.3347.73 ▲1.04
Dashboard /wp-admin3.95 ▲0.6457.75 ▲11.48
Posts /wp-admin/edit.php4.00 ▲0.6457.59 ▲6.29
Add New Post /wp-admin/post-new.php5.77 ▼0.1269.16 ▼40.77
Media Library /wp-admin/upload.php3.87 ▲0.6450.71 ▲14.28
Rektic Settings /wp-admin/options-general.php?page=settings-rektic3.8443.39
Create A New Article /wp-admin/admin.php?page=rektic-wp-article-new3.8145.11
Edit Article /wp-admin/admin.php?page=rektic-wp-article-edit3.8158.83
My Rektic Articles /wp-admin/admin.php?page=rektic-wp2.7819.08

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Rektic
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲16014.45 ▲0.212.15 ▲0.5264.70 ▲23.85
Dashboard /wp-admin2,290 ▲1025.10 ▲0.21117.52 ▲11.1047.96 ▲6.69
Posts /wp-admin/edit.php2,178 ▲892.28 ▲0.2839.74 ▲1.4532.34 ▼2.44
Add New Post /wp-admin/post-new.php1,569 ▲3623.18 ▲0.10640.90 ▼74.2935.31 ▼22.80
Media Library /wp-admin/upload.php1,474 ▲864.47 ▲0.26107.70 ▼8.3944.64 ▼1.69
Rektic Settings /wp-admin/options-general.php?page=settings-rektic8862.4230.6025.93
Create A New Article /wp-admin/admin.php?page=rektic-wp-article-new8642.2830.3828.93
Edit Article /wp-admin/admin.php?page=rektic-wp-article-edit8642.2830.8727.47
My Rektic Articles /wp-admin/admin.php?page=rektic-wp8642.2634.7927.77

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 detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=rektic-wp
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
    Undefined offset: 0
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=rektic-wp
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
    Trying to get property 'guid' of non-object
  • 36 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=rektic-wp
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
    Trying to get property 'ID' of non-object
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=rektic-wp
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
    Trying to get property 'post_title' of non-object
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=rektic-wp
    • > Notice in wp-content/plugins/rektic-wp/src/App/Backend/MenuPages.php+169
    Trying to access array offset on value of type bool

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/rektic-wp/vendor/micropackage/requirements/tests/bootstrap.php
  • 39× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/rektic-wp/vendor/micropackage/requirements/tests/Checker/test-theme.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Micropackage\\Requirements\\Abstracts\\Checker' not found in wp-content/plugins/rektic-wp/vendor/micropackage/requirements/src/Checker/DocHooks.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/rektic-wp/templates/articles-list.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/rektic-wp/vendor/micropackage/requirements/tests/Checker/test-wp.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Micropackage\\Requirements\\Abstracts\\Checker' not found in wp-content/plugins/rektic-wp/vendor/micropackage/requirements/src/Checker/PHP.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'RekticWp\\Common\\Abstracts\\Base' not found in wp-content/plugins/rektic-wp/src/App/Backend/Notices.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/rektic-wp/vendor/micropackage/requirements/tests/Checker/test-php.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/rektic-wp/templates/empty-metabox.php:13
    • > PHP Fatal error
      Trait 'RekticWp\\Common\\Traits\\Singleton' not found in wp-content/plugins/rektic-wp/src/Config/Plugin.php on line 31
    • > PHP Fatal error
      Uncaught Error: Class 'Micropackage\\Requirements\\Abstracts\\Checker' not found in wp-content/plugins/rektic-wp/vendor/micropackage/requirements/src/Checker/Theme.php:16

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

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: content, generate, generator, seo, article

rektic-wp/rektic-wp.php Passed 13 tests

This is the main PHP file of "Rektic" version 1.1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
16 characters long description:
Rektic WP plugin

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
Good job! No executable or dangerous file extensions detected9,084 lines of code in 88 files:
LanguageFilesBlank linesComment linesLines of code
PHP609071,9123,816
JavaScript103291423,418
CSS514326931
PO File2120156379
JSON500225
Markdown4850175
Bourne Shell12111120
XML10020

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity9.82
▷ Minimum class complexity1.00
▷ Maximum class complexity155.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces19
Interfaces1
Traits2
Classes41
▷ Abstract classes24.88%
▷ Concrete classes3995.12%
▷ Final classes615.38%
Methods241
▷ Static methods3112.86%
▷ Public methods23396.68%
▷ Protected methods10.41%
▷ Private methods72.90%
Functions11
▷ Named functions327.27%
▷ Anonymous functions872.73%
Constants8
▷ Global constants00.00%
▷ Class constants8100.00%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/public/images/logo.png6.91KB2.82KB▼ 59.21%