84% ctl-playful-kitty-c2-lite

Code Review | CTL Playful Kitty Lite

WordPress plugin CTL Playful Kitty Lite scored84%from 54 tests.

About plugin

  • Plugin page: ctl-playful-kitty...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.6.1
  • WordPress version: 6.3.1
  • First release: Sep 19, 2016
  • Latest release: Sep 19, 2016
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: codethislab (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,161 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
Install script ran successfully

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

Analyzing server-side resources used by CTL Playful Kitty Lite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.83 ▼0.80
Dashboard /wp-admin3.32 ▼0.0348.02 ▼20.58
Posts /wp-admin/edit.php3.37 ▲0.0150.02 ▼9.81
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.16 ▼13.46
Media Library /wp-admin/upload.php3.24 ▲0.0141.95 ▲4.69
About Us /wp-admin/admin.php?page=ctl_arcade_lite_games_about_us3.2134.21
Premium Games /wp-admin/admin.php?page=ctl_arcade_lite_games3.2135.98
Install Playful Kitty C2 Lite /wp-admin/admin.php?page=ctl_arcade_lite_game_ctl-playful-kitty-c2-lite3.2132.70

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for CTL Playful Kitty Lite
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲8914.47 ▲0.151.68 ▼0.0540.24 ▼3.89
Dashboard /wp-admin2,256 ▲534.85 ▼0.11109.26 ▼6.5738.02 ▼6.52
Posts /wp-admin/edit.php2,135 ▲322.03 ▲0.0739.62 ▲3.7635.57 ▼2.64
Add New Post /wp-admin/post-new.php1,573 ▲4123.41 ▲0.42676.38 ▼15.0967.11 ▲9.15
Media Library /wp-admin/upload.php1,435 ▲324.28 ▼0.0398.78 ▼10.8147.51 ▲0.50
About Us /wp-admin/admin.php?page=ctl_arcade_lite_games_about_us1,1139.47139.5676.53
Premium Games /wp-admin/admin.php?page=ctl_arcade_lite_games8622.0227.7227.99
Install Playful Kitty C2 Lite /wp-admin/admin.php?page=ctl_arcade_lite_game_ctl-playful-kitty-c2-lite8612.1824.8726.79

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

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

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 Passed 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
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=ctl_arcade_lite_games_about_us
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/admin.php?page=ctl_arcade_lite_games_about_us
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can take inspiration from this readme.txt

ctl-playful-kitty-c2-lite/ctl-playful-kitty-c2-lite.php Passed 13 tests

Analyzing the main PHP file in "CTL Playful Kitty Lite" version 1.0
59 characters long description:
Playful Kitty C2 Lite for CTL Arcade Lite Wordpress Plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected2,006 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript51071,558
PHP28920336
HTML2201484
JSON10028

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity3.13
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods1066.67%
▷ Protected methods00.00%
▷ Private methods533.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
38 PNG files occupy 1.03MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
game/images/messagebox-sheet0.png23.20KB23.90KB0.00%
game/images/orientationmessages.png15.25KB16.14KB0.00%
game/images/levelscoins-sheet0.png0.98KB0.99KB0.00%
game/images/buttonyestxt.png20.09KB21.28KB0.00%
game/loading-logo.png43.42KB10.55KB▼ 75.71%