90% generous-world

Code Review | Generous World - Increase sales and authority

WordPress plugin Generous World - Increase sales and authority scored90%from 54 tests.

About plugin

  • Plugin page: generous-world
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Sep 20, 2019
  • Latest release: Sep 26, 2019
  • Number of updates: 13
  • Update frequency: every 11.2 days
  • Top authors: generousworld (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /544 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Generous World - Increase sales and authority
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0236.98 ▼5.69
Dashboard /wp-admin3.36 ▲0.0549.88 ▼0.46
Posts /wp-admin/edit.php3.47 ▲0.1153.87 ▲1.03
Add New Post /wp-admin/post-new.php5.96 ▲0.0787.05 ▼17.57
Media Library /wp-admin/upload.php3.28 ▲0.0541.35 ▲3.68

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
generous_world_settings
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Generous World - Increase sales and authority
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5114.38 ▲0.111.66 ▲0.0142.63 ▼5.47
Dashboard /wp-admin2,209 ▲355.67 ▼0.1498.38 ▲9.8444.87 ▼1.16
Posts /wp-admin/edit.php2,126 ▲262.00 ▼0.0139.40 ▲3.1635.85 ▲3.55
Add New Post /wp-admin/post-new.php1,546 ▲1517.72 ▼5.66669.14 ▼46.1356.90 ▼1.74
Media Library /wp-admin/upload.php1,426 ▲264.32 ▲0.1298.69 ▼14.9542.64 ▼4.09

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • generous_world_settings
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: donation management, charities, social good, donation badge, generous world

generous-world/generous-world.php Passed 13 tests

"Generous World - Increase sales and authority" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
55 characters long description:
Embed Generous World badge code inside wordpress pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin349 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP988319332
JavaScript11515
CSS1032

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity6.20
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods21
▷ Static methods523.81%
▷ Public methods2095.24%
▷ Protected methods00.00%
▷ Private methods14.76%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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 images were found in this plugin