79% kurocoedge

Code Review | KurocoEdge

WordPress plugin KurocoEdge scored79%from 54 tests.

About plugin

  • Plugin page: kurocoedge
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1
  • WordPress version: 6.3.1
  • First release: Nov 23, 2022
  • Latest release: Nov 23, 2022
  • Number of updates: 5
  • Update frequency: every 0.8 days
  • Top authors: aayusharyan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /177 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.67MB] [CPU: ▼18.20ms] Passed 4 tests

An overview of server-side resources used by KurocoEdge
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.26 ▼2.59
Dashboard /wp-admin3.33 ▲0.0347.83 ▼3.44
Posts /wp-admin/edit.php3.39 ▲0.0345.02 ▼1.37
Add New Post /wp-admin/post-new.php3.15 ▼2.7437.17 ▼65.40
Media Library /wp-admin/upload.php3.26 ▲0.0336.31 ▲3.52
KurocoEdge /wp-admin/options-general.php?page=kurocoedge_settings3.2732.93

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

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

Browser metrics Passed 4 tests

Checking browser requirements for KurocoEdge
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.26 ▼1.121.67 ▼0.0341.84 ▼6.26
Dashboard /wp-admin2,210 ▲215.04 ▲0.14111.08 ▼0.8342.19 ▼0.97
Posts /wp-admin/edit.php2,090 ▲12.04 ▼0.0139.23 ▲2.4535.49 ▲1.07
Add New Post /wp-admin/post-new.php1,545 ▲3118.10 ▲0.60647.54 ▲13.6463.43 ▲7.41
Media Library /wp-admin/upload.php1,392 ▲44.18 ▼0.0495.90 ▲1.5741.19 ▼1.66
KurocoEdge /wp-admin/options-general.php?page=kurocoedge_settings9632.0828.5231.37

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% 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 0% 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 take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/kurocoedge/kurocoedge.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/kurocoedge/admin/templates/settings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kurocoedge/admin/index.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: efficiency, speed, website, kuroco, cdn...

kurocoedge/kurocoedge.php Passed 13 tests

The principal PHP file in "KurocoEdge" v. 1.0.2 is loaded by WordPress automatically on each request
41 characters long description:
Use KurocoEdge on your WordPress website.

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 plugin476 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP76650316
JavaScript1140107
Markdown113050
CSS1003

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin