94% causality

Code Review | Causality

WordPress plugin Causality scored 94% from 53 tests.

About plugin

  • Plugin page: causality
  • Plugin version: 0.01
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6+
  • WordPress version: 5.8.1
  • First release: Nov 26, 2016
  • Latest release: Nov 26, 2016
  • Number of updates: 3
  • Update frequency: every 20.7 days
  • Top authors: ineffyble (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 536 total downloads


Plugin footprint Passed 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.02MB] [CPU: ▼262.22ms] Passed 4 tests

Server-side resources used by Causality
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0241.58 ▲7.42
Dashboard /wp-admin3.08 ▲0.0344.19 ▲8.68
Posts /wp-admin/edit.php3.13 ▲0.0344.00 ▼1.60
Add New Post /wp-admin/post-new.php5.45 ▲0.0292.82 ▼1,047.23
Media Library /wp-admin/upload.php3.03 ▲0.0232.00 ▼7.48

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Causality
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,669 ▲8715.95 ▲0.407.11 ▼1.9549.06 ▲3.58
Dashboard /wp-admin2,953 ▲1015.95 ▲0.10131.79 ▼18.63100.84 ▼6.10
Posts /wp-admin/edit.php2,726 ▲202.68 ▼0.0162.67 ▼13.3986.21 ▼6.26
Add New Post /wp-admin/post-new.php1,666 ▲1318.66 ▼0.14360.51 ▼13.16107.53 ▲0.10
Media Library /wp-admin/upload.php1,789 ▲175.01 ▼0.02142.96 ▼7.40118.89 ▼3.52

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/causality/causality.php:14

User-side errors Passed 1 test

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


Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === causality === )
  • Tested up to: Version format is invalid
The official readme.txt might help

causality/causality.php Passed 13 tests

The entry point to "Causality" version 0.01 is a PHP file that has certain tags in its header comment area
56 characters long description:
Promote your cause and have an effect on your supporters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected253 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.08
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions9100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin