89% crowdfunding-regions

Code Review | Predefined Regions for Crowdfunding by Astoundify

WordPress plugin Predefined Regions for Crowdfunding by Astoundify scored89%from 54 tests.

About plugin

  • Plugin page: crowdfunding-regions
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5
  • WordPress version: 6.3.1
  • First release: Aug 12, 2013
  • Latest release: Sep 16, 2013
  • Number of updates: 14
  • Update frequency: every 17.7 days
  • Top authors: adampickering (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,947 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.91ms] Passed 4 tests

Analyzing server-side resources used by Predefined Regions for Crowdfunding by Astoundify
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.92 ▼3.63
Dashboard /wp-admin3.35 ▲0.0547.77 ▼1.53
Posts /wp-admin/edit.php3.40 ▲0.0543.26 ▼5.31
Add New Post /wp-admin/post-new.php5.93 ▲0.0584.62 ▼5.16
Media Library /wp-admin/upload.php3.28 ▲0.0536.68 ▼0.15

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Predefined Regions for Crowdfunding by Astoundify
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.69 ▼0.621.79 ▼0.3538.94 ▼4.16
Dashboard /wp-admin2,206 ▲185.91 ▲1.03110.04 ▲1.8241.63 ▲2.09
Posts /wp-admin/edit.php2,089 ▼02.13 ▲0.1134.07 ▼2.2933.62 ▼5.03
Add New Post /wp-admin/post-new.php1,542 ▲2818.32 ▲0.69656.55 ▼15.5650.05 ▼1.47
Media Library /wp-admin/upload.php1,388 ▲34.23 ▼0.0194.44 ▼23.7643.56 ▼5.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: locations, crowdfunding, regions

crowdfunding-regions/astoundify-crowdfunding-regions.php 85% from 13 tests

The entry point to "Predefined Regions for Crowdfunding by Astoundify" version 1.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("crowdfunding-regions.php" instead of "astoundify-crowdfunding-regions.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected132 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14183132

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods880.00%
▷ Protected methods00.00%
▷ Private methods220.00%
Functions3
▷ Named functions3100.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
PNG images were not found in this plugin