84% kcspirit

Code Review | KCSpirit

WordPress plugin KCSpirit scored84%from 54 tests.

About plugin

  • Plugin page: kcspirit
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.5
  • WordPress version: 6.3.1
  • First release: Dec 17, 2012
  • Latest release: Dec 17, 2012
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: acegiak (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,288 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.67ms] Passed 4 tests

Server-side resources used by KCSpirit
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.0144.36 ▼2.54
Dashboard /wp-admin3.58 ▲0.0250.70 ▼4.11
Posts /wp-admin/edit.php3.70 ▲0.0248.63 ▼6.76
Add New Post /wp-admin/post-new.php6.16 ▲0.0289.55 ▼13.25
Media Library /wp-admin/upload.php3.51 ▲0.0239.44 ▲0.26

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for KCSpirit
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲1814.27 ▼0.361.99 ▲0.0843.67 ▼1.12
Dashboard /wp-admin2,210 ▲305.60 ▼0.1090.09 ▼0.0268.75 ▲21.54
Posts /wp-admin/edit.php2,118 ▲181.97 ▼0.0342.64 ▲2.7435.89 ▲0.55
Add New Post /wp-admin/post-new.php1,539 ▲1317.78 ▲0.19748.55 ▲129.1463.81 ▲14.52
Media Library /wp-admin/upload.php1,412 ▲94.16 ▼0.02108.38 ▲6.6147.23 ▼0.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

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 | 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× 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/kcspirit/kcspirit.php:51

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === kcspirit === )
You can look at the official readme.txt

kcspirit/kcspirit.php Passed 13 tests

Analyzing the main PHP file in "KCSpirit" version 1.1.1
87 characters long description:
Launch effects or games when entering codes like the konami code with keyboard on site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin55 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1233155

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.04
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/start.png0.58KB0.65KB0.00%