Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.09ms] Passed 4 tests
This is a short check of server-side resources used by Rally Pledge Button
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.53 ▼4.69 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.89 ▼1.89 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.29 ▲1.79 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 93.31 ▲3.65 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.17 ▼3.56 |
Server storage [IO: ▲1.68MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
rally-pledge-button/rally-pledge-button.php-db-version |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Rally Pledge Button: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.48 ▲0.19 | 1.90 ▼0.19 | 37.52 ▼13.49 |
Dashboard /wp-admin | 2,203 ▲18 | 4.87 ▼1.03 | 108.45 ▲3.99 | 45.77 ▼1.18 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.99 ▼0.00 | 40.02 ▲1.34 | 36.64 ▲0.87 |
Add New Post /wp-admin/post-new.php | 1,546 ▲32 | 18.35 ▲0.82 | 607.23 ▼53.36 | 51.26 ▼10.05 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.25 ▲0.06 | 102.14 ▲0.82 | 40.76 ▼0.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- rally-pledge-button/rally-pledge-button.php-db-version
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- 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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/rally-pledge-button/rally-pledge-button.php:61
- > 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 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Tags: There were no tags found
- Screenshots: Add images for these screenshots: #1 (While composing a post, simply click the Rally Pledge button in the post editor.), #2 (Designate where the money should go by entering the Rally URL of your choosing.), #3 (The Rally Pledge button shortcode will then be automatically generated and inserted into the post.), #4 (Publish your post, and the Rally Pledge button will be visible on your WordPress site.), #5 (Visitors to your WordPress site can now pledge money to the Rally of your choosing by simply entering their email address.)
rally-pledge-button/rally-pledge-button.php 92% from 13 tests
The main file in "Rally Pledge Button" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Domain Path: The domain path points to a folder that does not exist ("/languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin130 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 45 | 48 | 102 |
JavaScript | 1 | 7 | 0 | 28 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 1 | 8.33% |
▷ Public methods | 11 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 8.33% |
Functions | 1 | |
▷ Named functions | 1 | 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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 1.67MB with 0.76MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 217.10KB | 96.55KB | ▼ 55.53% |
image.png | 0.67KB | 0.94KB | 0.00% |
screenshot-2.png | 293.53KB | 140.71KB | ▼ 52.06% |
screenshot-5.png | 432.51KB | 154.92KB | ▼ 64.18% |
screenshot-3.png | 278.92KB | 123.84KB | ▼ 55.60% |