84% taknalogy-reviews

Code Review | Taknalogy Reviews

WordPress plugin Taknalogy Reviews scored84%from 54 tests.

About plugin

  • Plugin page: taknalogy-reviews
  • Plugin version: 1.2.4
  • PHP compatiblity: 7.0.33+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Oct 12, 2019
  • Latest release: Mar 4, 2020
  • Number of updates: 29
  • Update frequency: every 5.0 days
  • Top authors: rnawaz02 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /1,187 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼4.24ms] Passed 4 tests

Server-side resources used by Taknalogy Reviews
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.46 ▲3.29
Dashboard /wp-admin3.31 ▼0.0447.02 ▼16.51
Posts /wp-admin/edit.php3.36 ▲0.0050.67 ▼2.45
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.39 ▼1.28
Media Library /wp-admin/upload.php3.23 ▲0.0039.91 ▲5.20

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Taknalogy Reviews
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.28 ▼0.952.16 ▲0.4644.37 ▲1.35
Dashboard /wp-admin2,221 ▲184.93 ▲0.04106.04 ▼9.8738.86 ▼5.88
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0239.85 ▲1.6034.35 ▼2.56
Add New Post /wp-admin/post-new.php1,548 ▲2223.31 ▲5.70596.79 ▼99.1948.70 ▼12.31
Media Library /wp-admin/upload.php1,400 ▼04.26 ▲0.08105.63 ▼6.3249.01 ▲6.65

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/taknalogy-reviews/functions.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/taknalogy-reviews/templates/single-product-reviews.php:2

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === taknalogy-reviews === )
The official readme.txt might help

taknalogy-reviews/taknalogy-reviews.php 92% from 13 tests

The main PHP file in "Taknalogy Reviews" ver. 1.2.4 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 217 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected757 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP647286634
CSS13764
JavaScript20559

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity17.67
▷ Minimum class complexity12.00
▷ Maximum class complexity25.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes3100.00%
Methods20
▷ Static methods525.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin