84% kagga

Code Review | Mankutimmana Kagga

WordPress plugin Mankutimmana Kagga scored84%from 54 tests.

About plugin

  • Plugin page: kagga
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-3.4.2
  • WordPress version: 6.3.1
  • First release: Aug 25, 2012
  • Latest release: Oct 29, 2012
  • Number of updates: 4
  • Update frequency: every 16.3 days
  • Top authors: prasannasp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,064 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.01MB] [CPU: ▼8.93ms] Passed 4 tests

Analyzing server-side resources used by Mankutimmana Kagga
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0240.11 ▼0.40
Dashboard /wp-admin3.36 ▼0.0247.45 ▼18.05
Posts /wp-admin/edit.php3.48 ▲0.0848.43 ▼4.83
Add New Post /wp-admin/post-new.php5.95 ▲0.0288.94 ▼12.45
Media Library /wp-admin/upload.php3.29 ▲0.0237.97 ▲1.83

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_manku-timmana-kagga
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Mankutimmana Kagga: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.24 ▼0.361.87 ▲0.0942.08 ▼0.33
Dashboard /wp-admin2,198 ▲215.57 ▼0.0581.97 ▼13.1041.22 ▼2.63
Posts /wp-admin/edit.php2,100 ▼31.99 ▲0.0235.33 ▼3.9735.83 ▼0.74
Add New Post /wp-admin/post-new.php1,525 ▼323.17 ▲0.03639.80 ▼37.4556.97 ▼1.49
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.0396.25 ▼12.1342.59 ▼0.73

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
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_manku-timmana-kagga
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/kagga/kagga.php:44

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 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (Mankutimmana Kagga widget showing a random poem), #2 (Mankutimmana Kagga widget showing another random poem), #3 (Another Kagga), #4 (Mankutimmana Kagga in Appearance > Widgets), #5 (Mankutimmana Kagga when added to sidebar. You can change it's title.)
Please take inspiration from this readme.txt

kagga/kagga.php 92% from 13 tests

The main PHP file in "Mankutimmana Kagga" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 175 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin60 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1392660

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 issues
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png14.15KB5.07KB▼ 64.18%
screenshot-2.png26.23KB8.88KB▼ 66.17%
screenshot-3.png29.07KB9.88KB▼ 66.03%
screenshot-5.png9.59KB3.51KB▼ 63.44%
screenshot-1.png28.25KB9.59KB▼ 66.06%