Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.02 | 41.58 ▲7.42 |
Dashboard /wp-admin | 3.08 ▲0.03 | 44.19 ▲8.68 |
Posts /wp-admin/edit.php | 3.13 ▲0.03 | 44.00 ▼1.60 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 92.82 ▼1,047.23 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 32.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,669 ▲87 | 15.95 ▲0.40 | 7.11 ▼1.95 | 49.06 ▲3.58 |
Dashboard /wp-admin | 2,953 ▲101 | 5.95 ▲0.10 | 131.79 ▼18.63 | 100.84 ▼6.10 |
Posts /wp-admin/edit.php | 2,726 ▲20 | 2.68 ▼0.01 | 62.67 ▼13.39 | 86.21 ▼6.26 |
Add New Post /wp-admin/post-new.php | 1,666 ▲13 | 18.66 ▼0.14 | 360.51 ▼13.16 | 107.53 ▲0.10 |
Media Library /wp-admin/upload.php | 1,789 ▲17 | 5.01 ▼0.02 | 142.96 ▼7.40 | 118.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
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 16 | 0 | 129 |
PHP | 1 | 18 | 28 | 108 |
CSS | 1 | 2 | 0 | 9 |
Markdown | 1 | 3 | 0 | 7 |
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 code | 0.08 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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