68% hytolat

Code Review | HyToLat

WordPress plugin HyToLat scored 68% from 54 tests.

About plugin

  • Plugin page: hytolat
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 1.5-4.2.4
  • WordPress version: 6.3.1
  • First release: Jan 18, 2014
  • Latest release: Aug 8, 2015
  • Number of updates: 8
  • Update frequency: every 71.0 days
  • Top authors: davpro (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 1,868 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.95MB] [CPU: ▼28.03ms] Passed 4 tests

An overview of server-side resources used by HyToLat
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.85 ▼9.04
Dashboard /wp-admin2.99 ▼0.3124.10 ▼19.56
Posts /wp-admin/edit.php2.99 ▼0.3628.97 ▼15.70
Add New Post /wp-admin/post-new.php2.99 ▼2.8922.55 ▼65.69
Media Library /wp-admin/upload.php2.99 ▼0.2322.55 ▼11.17
HyToLat /wp-admin/options-general.php?page=hytolat/hytolat.php2.9929.92

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by HyToLat
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.24 ▼1.151.60 ▼1.1940.75 ▲1.27
Dashboard /wp-admin2,210 ▲225.84 ▼0.04108.71 ▲2.3541.68 ▼4.70
Posts /wp-admin/edit.php2,093 ▲41.98 ▼0.0739.47 ▲2.7735.42 ▲0.20
Add New Post /wp-admin/post-new.php1,517 ▼1617.69 ▼5.63648.37 ▼20.0155.44 ▼1.14
Media Library /wp-admin/upload.php1,395 ▲44.20 ▲0.0699.66 ▲0.8345.35 ▲1.60
HyToLat /wp-admin/options-general.php?page=hytolat/hytolat.php7922.0225.8828.16

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% 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
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=hytolat/hytolat.php
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/options-general.php?page=hytolat/hytolat.php
    • > Notice in wp-content/plugins/hytolat/hytolat.php+45
    Undefined index: htl_standard

SRP 50% 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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hytolat/hytolat.php:75

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: url, hy, transliteration, links, hytolat...

hytolat/hytolat.php 92% from 13 tests

The main PHP script in "HyToLat" version 0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 293 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected60 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18960

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 issues
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected