84% himegoto

Code Review | Himegoto

WordPress plugin Himegoto scored84%from 54 tests.

About plugin

  • Plugin page: himegoto
  • Plugin version: 0.7.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.4
  • WordPress version: 6.3.1
  • First release: Feb 13, 2013
  • Latest release: Feb 13, 2013
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: Webnist (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /773 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.92ms] Passed 4 tests

Analyzing server-side resources used by Himegoto
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.38 ▲2.18
Dashboard /wp-admin3.34 ▲0.0444.52 ▼3.88
Posts /wp-admin/edit.php3.40 ▲0.0444.47 ▲1.32
Add New Post /wp-admin/post-new.php5.92 ▲0.0484.97 ▼13.87
Media Library /wp-admin/upload.php3.27 ▲0.0434.97 ▲0.76
Himegoto /wp-admin/edit.php?post_type=himegoto3.3136.09
Add New /wp-admin/post-new.php?post_type=himegoto3.3640.01

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Himegoto
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.36 ▼0.061.76 ▲0.0444.66 ▲4.98
Dashboard /wp-admin2,222 ▲415.63 ▼0.0984.98 ▼13.5740.75 ▼3.30
Posts /wp-admin/edit.php2,127 ▲272.01 ▲0.0236.46 ▲2.2037.22 ▲0.25
Add New Post /wp-admin/post-new.php1,549 ▲2323.64 ▲0.41689.29 ▲17.0958.25 ▲1.33
Media Library /wp-admin/upload.php1,430 ▲334.18 ▲0.01100.22 ▼0.9342.02 ▼4.19
Himegoto /wp-admin/edit.php?post_type=himegoto1,0911.9730.5527.80
Add New /wp-admin/post-new.php?post_type=himegoto2,1627.51186.4968.00

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/himegoto/himegoto.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === himegoto === )
  • Donate link: Invalid URI ("")
You can look at the official readme.txt

himegoto/himegoto.php Passed 13 tests

"Himegoto" version 0.7.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
48 characters long description:
Using the search form, displays the secret post.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin144 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP113981
PO File18831
CSS11025
JavaScript4007

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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