84% souliyo-key

Code Review | Souliyo Key

WordPress plugin Souliyo Key scored 84% from 54 tests.

About plugin

  • Plugin page: souliyo-key
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 6.3.1
  • First release: Jan 12, 2016
  • Latest release: Jan 11, 2016
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: souliyo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,224 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.24ms] Passed 4 tests

This is a short check of server-side resources used by Souliyo Key
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.91 ▼1.19
Dashboard /wp-admin3.31 ▲0.0146.08 ▼6.61
Posts /wp-admin/edit.php3.36 ▲0.0047.70 ▼1.85
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.76 ▲0.69
Media Library /wp-admin/upload.php3.23 ▲0.0035.30 ▲2.45

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Souliyo Key
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.28 ▼1.021.73 ▼0.3854.85 ▲12.73
Dashboard /wp-admin2,206 ▲155.84 ▼0.0697.97 ▼13.5534.02 ▼13.04
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0234.92 ▲0.9332.26 ▼4.00
Add New Post /wp-admin/post-new.php1,533 ▼723.29 ▲0.25567.93 ▼85.3049.56 ▼6.85
Media Library /wp-admin/upload.php1,388 ▼34.20 ▲0.0291.32 ▼4.1841.42 ▼2.38

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/souliyo-key/souliyo-key.php:12

User-side errors Passed 1 test

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

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
4 plugin tags: custom, custom css, css, styles

souliyo-key/souliyo-key.php Passed 13 tests

The main file in "Souliyo Key" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
133 characters long description:
This plugin is a simpliest way of applying Souliyo-Unicode font to your wordpress plugin. This plugin is part of Souliyo Key Project.

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
Success! There were no dangerous files found in this plugin31 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS14123
PHP1488

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.37MB with 0.27MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png374.22KB96.35KB▼ 74.25%