10% wp-inbox

Code Review | WP INBOX

WordPress plugin WP INBOX scored10%from 54 tests.

About plugin

  • Plugin page: wp-inbox
  • Plugin version: 1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Mar 9, 2020
  • Latest release: Mar 5, 2021
  • Number of updates: 24
  • Update frequency: every 15.2 days
  • Top authors: softbranchtech (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,329 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'InboxWebmail_Helper_Upgrade' does not have a method 'upgrade'

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.67ms] Passed 4 tests

This is a short check of server-side resources used by WP INBOX
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.82 ▼1.59
Dashboard /wp-admin3.38 ▲0.0849.59 ▼3.00
Posts /wp-admin/edit.php3.49 ▲0.1450.42 ▲0.25
Add New Post /wp-admin/post-new.php5.96 ▲0.0890.43 ▼10.35
Media Library /wp-admin/upload.php3.30 ▲0.0738.81 ▲3.10

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 71 new files
Database: 4 new tables, 8 new options
New tables
wp_inboxwebmail_attachments
wp_inboxwebmail_labels
wp_inboxwebmail_inbox
wp_inboxwebmail_accounts
New WordPress options
db_upgraded
inboxWebmail_version
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
inboxWebmail_dbVersion

Browser metrics Passed 4 tests

WP INBOX: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.39 ▼0.211.87 ▲0.0143.39 ▲1.20
Dashboard /wp-admin2,207 ▲275.57 ▼0.1086.85 ▼0.4837.42 ▼8.63
Posts /wp-admin/edit.php2,112 ▲152.02 ▲0.0337.24 ▲1.1132.38 ▼8.21
Add New Post /wp-admin/post-new.php1,536 ▲1023.68 ▲0.62701.53 ▲40.8054.51 ▼2.28
Media Library /wp-admin/upload.php1,406 ▲64.21 ▼0.10100.73 ▼8.6447.38 ▲2.34

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 9× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'InboxWebmail_Model_Mapper' not found in wp-content/plugins/wp-inbox/lib/model/InboxWebmail_Model_InboxMapper.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'InboxWebmail_View_View' not found in wp-content/plugins/wp-inbox/lib/view/InboxWebmail_View_AccountOverall.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'InboxWebmail_Model_Mapper' not found in wp-content/plugins/wp-inbox/lib/model/InboxWebmail_Model_AccountMapper.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'InboxWebmail_Model_Mapper' not found in wp-content/plugins/wp-inbox/lib/model/InboxWebmail_Model_EmailParser.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/wp-inbox/lib/view/InboxWebmail_View_InboxTable.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/wp-inbox/lib/view/InboxWebmail_View_InboxData.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'InboxWebmail_View_View' not found in wp-content/plugins/wp-inbox/lib/view/InboxWebmail_View_Inbox.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'InboxWebmail_View_View' not found in wp-content/plugins/wp-inbox/lib/view/InboxWebmail_View_InboxCompose.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-inbox/wp-inbox.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: email, compose, inbox

wp-inbox/wp-inbox.php Passed 13 tests

The primary PHP file in "WP INBOX" version 1.0 is used by WordPress to initiate all plugin functionality
52 characters long description:
A powerful and beautiful inbox plugin for WordPress.

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
Good job! No executable or dangerous file extensions detected6,855 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
PO File141,61003,449
PHP164254882,259
CSS235621,053
JavaScript215260
Markdown114034

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity14.64
▷ Minimum class complexity2.00
▷ Maximum class complexity75.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods87
▷ Static methods66.90%
▷ Public methods6574.71%
▷ Protected methods22.30%
▷ Private methods2022.99%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants990.00%
▷ Class constants110.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.27MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png50.82KB17.28KB▼ 65.99%
assets/icon-256x256.png25.78KB11.89KB▼ 53.88%
assets/banner-772x250.png104.21KB36.46KB▼ 65.02%
assets/screenshot-2.png13.18KB5.96KB▼ 54.77%
assets/screenshot-4.png36.80KB15.96KB▼ 56.62%