88% jannes-mannes-appmail

Code Review | Jannes & Mannes AppMail

WordPress plugin Jannes & Mannes AppMail scored 88% from 54 tests.

About plugin

  • Plugin page: jannes-mannes-app...
  • Plugin version: 0.4.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.2
  • WordPress version: 5.8.1
  • First release: Nov 17, 2016
  • Latest release: Mar 16, 2017
  • Number of updates: 25
  • Update frequency: every 4.6 days
  • Top authors: jannesmannes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 577 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼140.66ms] Passed 4 tests

Server-side resources used by Jannes & Mannes AppMail
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.93 ▲0.1041.69 ▲6.71
Dashboard /wp-admin3.16 ▲0.1150.61 ▲3.75
Posts /wp-admin/edit.php3.27 ▲0.1745.12 ▼0.53
Add New Post /wp-admin/post-new.php5.53 ▲0.0996.83 ▼559.87
Media Library /wp-admin/upload.php3.11 ▲0.1035.87 ▼5.98

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 130 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Jannes & Mannes AppMail
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,699 ▲10315.84 ▲0.2812.53 ▲1.0345.73 ▼1.68
Dashboard /wp-admin2,993 ▲625.91 ▼0.23139.40 ▼7.20107.14 ▲1.43
Posts /wp-admin/edit.php2,759 ▲202.72 ▲0.0166.19 ▼1.4192.22 ▲2.32
Add New Post /wp-admin/post-new.php1,628 ▼5521.59 ▲3.05332.86 ▼87.85104.40 ▼3.93
Media Library /wp-admin/upload.php1,827 ▲205.03 ▼0.01159.99 ▼9.05120.27 ▼2.96

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% 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)
Good news, no errors were detected

SRP 0% 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 fix the following items
  • 8× PHP files output text when accessed directly:
    • > /wp-content/plugins/jannes-mannes-appmail/vendor/rmccue/requests/bin/create_pear_package.php
    • > /wp-content/plugins/jannes-mannes-appmail/vendor/rmccue/requests/examples/basic-auth.php
    • > /wp-content/plugins/jannes-mannes-appmail/vendor/rmccue/requests/examples/session.php
    • > /wp-content/plugins/jannes-mannes-appmail/vendor/rmccue/requests/examples/cookie.php
    • > /wp-content/plugins/jannes-mannes-appmail/vendor/rmccue/requests/examples/post.php
    • > /wp-content/plugins/jannes-mannes-appmail/vendor/rmccue/requests/examples/multiple.php
    • > /wp-content/plugins/jannes-mannes-appmail/vendor/rmccue/requests/examples/get.php
    • > /wp-content/plugins/jannes-mannes-appmail/vendor/rmccue/requests/examples/cookie_jar.php
  • 61× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/jannes-mannes-appmail/vendor/rmccue/requests/library/Requests/Exception/HTTP/403.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/jannes-mannes-appmail/vendor/rmccue/requests/tests/Proxy/HTTP.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Requests_Utility_CaseInsensitiveDictionary' not found in wp-content/plugins/jannes-mannes-appmail/vendor/rmccue/requests/library/Requests/Response/Headers.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/jannes-mannes-appmail/vendor/rmccue/requests/library/Requests/Exception/HTTP/505.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'RequestsTest_Transport_Base' not found in wp-content/plugins/jannes-mannes-appmail/vendor/rmccue/requests/tests/Transport/fsockopen.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Requests_Exception_Transport' not found in wp-content/plugins/jannes-mannes-appmail/vendor/rmccue/requests/library/Requests/Exception/Transport/cURL.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/jannes-mannes-appmail/vendor/rmccue/requests/library/Requests/Exception/HTTP/503.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Requests_Exception' not found in wp-content/plugins/jannes-mannes-appmail/vendor/rmccue/requests/library/Requests/Exception/Transport.php:3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/jannes-mannes-appmail/vendor/rmccue/requests/bin/create_pear_package.php on line 12
    • > PHP Fatal error
      Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/jannes-mannes-appmail/vendor/rmccue/requests/library/Requests/Exception/HTTP/428.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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: relay, appmail, mail

jannes-mannes-appmail/jm-appmail.php 85% from 13 tests

The main PHP file in "Jannes & Mannes AppMail" ver. 0.4.6 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("jannes-mannes-appmail.php" instead of "jm-appmail.php")
  • Description: Make the plugin description longer than 10 characters (currently 0 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin7,258 lines of code in 122 files:
LanguageFilesBlank linesComment linesLines of code
PHP1001,3253,7306,165
Markdown123660836
JSON400156
YAML29548
XML12037
Bourne Shell24012
Python1104

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity9.47
▷ Minimum class complexity1.00
▷ Maximum class complexity195.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces3
Interfaces4
Traits0
Classes81
▷ Abstract classes11.23%
▷ Concrete classes8098.77%
▷ Final classes00.00%
Methods437
▷ Static methods8820.14%
▷ Public methods39289.70%
▷ Protected methods439.84%
▷ Private methods20.46%
Functions11
▷ Named functions872.73%
▷ Anonymous functions327.27%
Constants29
▷ Global constants26.90%
▷ Class constants2793.10%
▷ Public constants27100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin