74% cumulonimbus

Code Review | Cumulonimbus

WordPress plugin Cumulonimbus scored74%from 54 tests.

About plugin

  • Plugin page: cumulonimbus
  • Plugin version: 0.20
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 12, 2013
  • Latest release: Jun 2, 2013
  • Number of updates: 5
  • Update frequency: every 16.8 days
  • Top authors: beeender (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,390 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.69MB] [CPU: ▼48.36ms] Passed 4 tests

Analyzing server-side resources used by Cumulonimbus
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.30 ▼1.1610.41 ▼34.10
Dashboard /wp-admin2.31 ▼0.9912.36 ▼38.45
Posts /wp-admin/edit.php2.32 ▼1.0410.31 ▼42.33
Add New Post /wp-admin/post-new.php2.31 ▼3.5712.70 ▼78.54
Media Library /wp-admin/upload.php2.32 ▼0.9111.05 ▼26.10

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Cumulonimbus
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.34 ▼1.031.70 ▼0.1340.05 ▼4.86
Dashboard /wp-admin2,209 ▲214.83 ▼0.08102.96 ▼16.9239.55 ▼4.00
Posts /wp-admin/edit.php2,086 ▼62.04 ▲0.0533.77 ▼6.9240.72 ▲5.38
Add New Post /wp-admin/post-new.php1,533 ▲1923.19 ▲5.56675.27 ▲11.3870.80 ▲18.57
Media Library /wp-admin/upload.php1,391 ▼04.16 ▼0.03100.16 ▼3.4343.64 ▼4.18

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/cumulonimbus/cumulonimbus.php+187
    Use of undefined constant cumulonibus_widget - assumed 'cumulonibus_widget' (this will throw an Error in a future version of PHP)
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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 items
  • 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/cumulonimbus/cumulonimbus.php:192

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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: tags, sidebar, widget

cumulonimbus/cumulonimbus.php Passed 13 tests

"Cumulonimbus" version 0.20's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
88 characters long description:
Cumulonimbus allows you to display your site's tags on the surface of a rotating sphere.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin417 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript27418271
PHP12820146

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected