84% phetsarath-ot

Code Review | Phetsarath OT

WordPress plugin Phetsarath OT scored84%from 54 tests.

About plugin

  • Plugin page: phetsarath-ot
  • Plugin version: 1.0 (Beta)...
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 12, 2016
  • Latest release: Jan 12, 2016
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: frankkung (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /8,889 total downloads

Benchmarks

Plugin footprint 83% 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.01MB] [CPU: ▼12.45ms] Passed 4 tests

A check of server-side resources used by Phetsarath OT
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.00 ▼0.15
Dashboard /wp-admin3.31 ▼0.0442.77 ▼20.42
Posts /wp-admin/edit.php3.36 ▲0.0043.45 ▼6.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.15 ▼23.16
Media Library /wp-admin/upload.php3.23 ▲0.0034.25 ▼0.13

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Phetsarath OT: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.27 ▼0.101.72 ▼0.0647.56 ▲2.61
Dashboard /wp-admin2,200 ▲255.61 ▼0.1086.99 ▼24.5731.78 ▼6.65
Posts /wp-admin/edit.php2,099 ▲172.01 ▲0.0439.08 ▲0.5431.14 ▼5.46
Add New Post /wp-admin/post-new.php1,536 ▲1017.97 ▼5.09587.75 ▼34.4458.28 ▼7.84
Media Library /wp-admin/upload.php1,405 ▲54.21 ▼0.01102.27 ▼0.1436.09 ▼15.01

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

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 everything seems fine, this is not 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/phetsarath-ot/phetsarath_ot.php:19

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

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: phetsarath, phetsarath wp, font lao, phetsarath ot, phetsarath for wordpress

phetsarath-ot/phetsarath_ot.php 85% from 13 tests

This is the main PHP file of "Phetsarath OT" version 1.0 (Beta)..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "1.0 (Beta)...")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("phetsarath-ot.php" instead of "phetsarath_ot.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,616 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
SVG11901,572
CSS21019
HTML10016
PHP16169

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin